Part Number Hot Search : 
TS1117CP 316EIR1 CY7C42 A150C1 PT15D 52000 IC930 N5216D
Product Description
Full Text Search
 

To Download PCF21219DUGR Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  1. general description the pcf21219 is a low power cmos 1 lcd controller and driver, designed to drive a dot matrix lcd display of 2-lines by 16 characters or 1-line by 32 characters with 5 ? 8 dot format. all necessary functions for the display are provided in a single chip, including on-chip generation of lcd bias voltages, resu lting in a minimum of external components and lower system current consumption. the pcf21219 interfaces to most microcontrollers via a 4-bit or 8-bit bus or via the 2-wire i 2 c-bus. the chip contains a character generator and displays alphanumeric and kana (japanese) characters. the last letter in the type name, for example pcf21219dug r , characterizes the built-in character set. various character sets can be manufactured on request. in addition 16 user defined symbols (5 ? 8 dot format) are available. for a selection of nxp lcd character drivers, see table 50 on page 73 . 2. features and benefits ? single-chip lcd controller and driver ? 2-line display of up to 16 characters plus 160 icons or 1-line display of up to 32 characters plus 160 icons ? 5 ? 7 character format plus cursor; 5 ? 8 for kana (japanese) and user defined symbols ? reduced current consumption while displaying icons only ? on-chip: ? configurable 4, 3, or 2 times voltage multiplier generating lcd supply voltage, independent of v dd , programmable by instruction (external supply also possible) ? temperature compensation of on-chip generated v lcdout : ? 0.16 %/k to ? 0.24 %/k (programmable by instruction) ? generation of intermediate lcd bias voltages ? oscillator requires no external componen ts (external clock also possible) ? display data ram (ddram): 80 characters ? character generator rom (cgrom): 240 characters (5 ? 8) ? character generator ram (cgram): 16 characters (5 ? 8); 4 characters used to drive 160 icons ? 4-bit or 8-bit parallel bus and 2-wire i 2 c-bus interface ? pin compatible with pcf2119 ? manufactured in silicon gate cmos process ? 18 row and 80 column outputs pcf21219 lcd driver for character displays rev. 1 ? 14 january 2014 product data sheet 1. the definition of the abbreviations and acronyms used in this data sheet can be found in section 21 .
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 2 of 82 nxp semiconductors pcf21219 lcd driver for character displays ? multiplex rates 1:18 (2-line di splay or 1-line display), 1:9 (for 1-line display of up to 16 characters and 80 icons) and 1:2 (for icon only mode) ? uses common 11 code in struction set (extended) ? logic supply voltage: v dd1 ? v ss1 = 2.5 v to 5.5 v (chip may be driven with two battery cells) ? lcd supply voltage: v lcdout ? v ss2 = 2.5 v to 6.5 v ? v lcd generator supply voltage: v dd2 ? v ss2 = 2.5 v to 4 v and v dd3 ? v ss2 =2.5vto4v ? direct mode to save current consumption for icon mode and multiplex drive mode 1:9 (depending on v dd2 value and lcd liquid properties) ? very low current consumption ? icon mode is used to save current. when only icons are displayed, a much lower lcd operating voltage can be used and the switching frequency of the lcd outputs is reduced; in most applications it is possible to use v dd as lcd supply voltage 3. applications ? telecom equipment ? portable instruments ? point-of-sale terminals
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 3 of 82 nxp semiconductors pcf21219 lcd driver for character displays 4. ordering information 4.1 ordering options 5. marking table 1. ordering information type number package name description version PCF21219DUGR bare die 168 bumps pcf21219dug table 2. ordering options product type number sales item (12nc) orderable part number ic revision delivery form PCF21219DUGR/da 935303462033 PCF21219DUGR/ daz 2 chips in tray; character set r table 3. marking codes product type number marking code PCF21219DUGR/da pc21219-2
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 4 of 82 nxp semiconductors pcf21219 lcd driver for character displays 6. block diagram fig 1. block diagram of pcf21219 ddd &85625$1''$7$&21752/ 6+,)75(*,67(5?%,7 '$7$/$7&+(6 &2/801'5,9(56    &+$5$&7(5 *(1(5$725 5$0 ? &*5$0 &+$5$&7(56 &+$5$&7(5 *(1(5$725 520 &*520 &+$5$&7(56 ',63/$<'$7$5$0 ''5$0 &+$5$&7(56%<7(6 $''5(66&2817(5 $& ,16758&7,21 '(&2'(5 ,16758&7,21 5(*,67(5 52:'5,9(56 6+,)75(*,67(5%,7 %,$6 92/7$*( *(1(5$725 9 /&' *(1(5$725 %86< )/$* '$7$ 5(*,67(5 '5 ,2%8))(5 26&,//$725 7,0,1* *(1(5$725 ',63/$< $''5(66 &2817(5 9 '' 9 /&'287 9 66 7 9 /&',1 9 /&'6(16( 7 7 9 '' 9 '' &wr& 5'83 5wr5 26& 3' 3&) '%wr'% '%6$ '%wr'% ( 5: 56 6&/ 6'$     325          9 66
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 5 of 82 nxp semiconductors pcf21219 lcd driver for character displays 7. pinning information 7.1 pinning viewed from active side. for mechanical details, see figure 42 . fig 2. pinning diagram of pcf21219     [ [ [ \ \ \ 3&) 3&) 3&) ddd    gxpp\ 9 66 5          5 5 &                                                   & 5'83 &                                                   & 5 5          5 gxpp\ 9 66    6&/ 7 325 3' 6'$ 5: 56    '% '% '% '%6$ '% '% '% '%   26& 9 ''    9 '' 9 '' (    7 7 9 66    9 66 9 /&'6(16(    9 /&'287    9 /&',1
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 6 of 82 nxp semiconductors pcf21219 lcd driver for character displays 7.2 pin description table 4. pin description input or input/output pins must always be at a defined level (v ss or v dd ) unless otherwise specified. symbol pin description v dd1 1 to 6 supply voltage 1 (logic) v dd2 7 to 14 [1] supply voltage 2 (for high voltage generator) v dd3 15 to 18 [1] supply voltage 3 (for high voltage generator) e19 [2] data bus clock input ? set high to signal the start of a read or write operation ? data is clocked in or out of the chip on the negative edge of the clock t1 and t2 20 and 21 test pins ? must be connected to v ss1 v ss1 22 to 29 [3] ground supply voltage 1 ? for all circuits, except of high voltage generator v ss2 30 to 35 [3] ground supply voltage 2 ? for high voltage generator v lcdsense 36 input for voltage multiplier regulation circuitry and for the bias level generation ? if v lcd is generated internally then this pin must be connected to v lcdout and v lcdin ? if v lcd is generated externally then this pin must be connected to v lcdin only v lcdout 37 to 43 v lcd output ? if v lcd is generated internally then this pin must be connected to v lcdin and to v lcdsense ? if v lcd is generated externally then this pin must be left open-circuit v lcdin 44 to 49 input for lcd bias level generator ? if v lcd is generated internally then this pin must be connected to v lcdout and to v lcdsense ? if v lcd is generated externally then this pin must be connected to v lcdsense and to the external v lcd power supply dummy 50 - r8 to r1, r17, r17dup, r18, r9 to r16 51 to 58, 59, 100 141, 142 to 149 lcd row driver output ? r17 has two pins: r17 and r17dup ? r17 and r18 drive the icons c80 to c41, c40 to c1 60 to 99, 101 to 140 lcd column driver output dummy 150 - scl 151 and 152 [4] i 2 c-bus serial clock input t3 153 test pin ? open-circuit ? not user accessible
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 7 of 82 nxp semiconductors pcf21219 lcd driver for character displays [1] always put v dd2 =v dd3 . [2] when the i 2 c-bus is used, the parallel interface pin e must be low. [3] the substrate (rear side of the die) is at v ss potential and must not be connected. [4] when the parallel bus is used, the pins scl and sda must be connected to v ss1 or v dd1 ; they must not be left open-circuit. [5] in the i 2 c-bus read mode, ports db7 to db4 and db2 to db0 should be connected to v dd1 or left open-circuit. [6] when the 4-bit interface is used without reading out from the pcf21219 (bit r/w is set permanently to logic 0), the unused ports db4 to db0 can either be set to v ss1 or v dd1 instead of leaving them open-circuit. por 154 external power-on reset (por) input pd 155 power-down mode select ? for normal operation, pin pd must be low sda 156 and 157 [4] i 2 c-bus serial data input/output r/w 158 read/write input ? pin r/w = high selects the read operation ? pin r/w = low selects the write operation ? this pin has an internal pull-up resistor rs 159 register select pin ? this pin has an internal pull-up resistor db0 to db2, db3/sa0, db4 to db7 160 to 162, 163, 164 to 167 [5] [6] 8 bit bidirectional data bus (bit 0 to bit 7) ? the 8-bit bidirectional data bus (3-state) transfers data between the microcontroller and the pcf21219 ? pin db7 may be used as the busy flag, signalling that internal operations are not yet completed ? 4-bit operations the 4 higher order lines db7 to db4 are used, db3 to db0 must be left open-circuit ? data bus line db3 has an alternative function (sa0) as the i 2 c-bus address pin ? each data line has its own internal pull-up resistor osc 168 oscillator or external clock input ? when the on-chip oscillator is used this pin must be connected to v dd1 table 4. pin description ?continued input or input/output pins must always be at a defined level (v ss or v dd ) unless otherwise specified. symbol pin description
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 8 of 82 nxp semiconductors pcf21219 lcd driver for character displays 8. functional description 8.1 oscillator and timing generator the internal logic and the lcd drive signals of the pcf21219 are timed by the frequency f clk which equals either the built in oscillator frequency f osc or an external clock frequency f osc(ext) . 8.1.1 timing generator the timing generator produces the various sig nals required to drive the internal circuitry. internal chip operation is not disturbed by operations on the data buses. 8.1.2 internal clock to use the on-chip oscillator, pin osc must be connected to v dd1 . the on-chip oscillator provides the clock signal for the display system. no external components are required. 8.1.3 external clock if an external clock will be used, the input is at pin osc. the resulting display frame frequency is given by: (1) remark: only in the power-down mode the clock is allowed to be stopped (pin osc connected to v ss ), otherwise the lcd is frozen in a dc state, which is not suitable for the liquid crystals. 8.2 reset function and po wer-on reset (por) the pcf21219 must be reset externally when power is turned on. if no external reset is performed, the chip might start-up in an unwanted state. for the external reset, pin por has to be acti ve high. the reset has to be active for at least 3 oscillator periods in or der for the reset to be executed . if the internal oscillator is used, the minimum reset activity time follows from the lowest possibl e oscillator frequency (f osc = 461 khz, t osc ~2.17 ? s, 3 ? t osc ~6.51 ? s). the internal oscilla tor start-up time is 200 ? s (typ) up to 300 ? s (max) after power-on. in case that an external oscillator is used, t osc is dependent from f osc(ext) . afterwards the chip executes the clear_display instruction, which requires 165 oscillator cycles. after the reset the chip has the state shown in ta b l e 5 and is then ready for use. f fr f clk 3072 ----------- - =
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 9 of 82 nxp semiconductors pcf21219 lcd driver for character displays [1] the busy flag (bf) indicates the busy state (bit bf = 1) until in itialization ends. the busy state lasts 2 ms. the chip may als o be initialized by software (see table 44 and table 45 ). 8.3 power-down mode the chip can be put into power-down mode by applying a high-level to pin pd. in power-down mode all stat ic currents are switched off (no in ternal oscillator, no bias level generation and all lcd outputs are internally connected to v ss ). during power-down, info rmation in the ram and the chip state are preserved. instruction execution during power-down is possible when pin osc is externally clocked. table 5. state after reset step function control bit and register state description reference 1 clear_display - - ta b l e 1 7 2 entry_mode_set bit i_d = 1 incremental cursor move direction ta b l e 1 9 bit s = 0 no display shift 3 display_ctl bit d = 0 display off ta b l e 2 0 bit c = 0 cursor off 4 function_set bit dl = 1 8-bit interface ta b l e 1 3 bit m = 0 1-line display bit sl = 0 1:18 multiplex drive mode bit h = 0 normal instruction set 5 default address pointer to ddram [1] -- ta b l e 2 3 6 icon_ctl bit im = 0 character mode, full display ta b l e 2 6 7 screen_conf bit l = 0 default configuration ta b l e 2 4 disp_conf bit p = 0; bitq=0 default configurations ta b l e 2 5 8 temp_ctl bit tc1 = 0; bit tc2 = 0 default temperature coefficient ta b l e 2 8 9 vlcd_set register v a =0; register v b =0 v lcd generator off ta b l e 3 2 10 i 2 c-bus interface reset - - - 11 hv_gen bit s1 = 1; bit s0 = 0 v lcd generator set to 3 internal stages (4 voltage multipliers) ta b l e 3 0
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 10 of 82 nxp semiconductors pcf21219 lcd driver for character displays 8.4 lcd supply voltage generator the lcd supply voltage may be generated on-chip. the v lcd generator is controlled by two internal 6-bit registers: v a and v b . register v a is programmed with the voltage for character mode and register v b with the voltage for icon mode. the nominal lcd operating voltage at room temperature is given by equation 2 : (2) where v x is the integer value of the register v a or v b . v lcd is sometimes referred as the lcd operating voltage (v oper ). 8.4.1 programming ranges possible values for v a and v b are between 0 to 63. v lcd nom ?? v x 0.08 1.82 + ? = table 6. values of v a and v b and the corresponding v lcd values all values at t ref =27 ? integer values of v a and v b corresponding value of v lcd in v integer values of v a and v b corresponding value of v lcd in v integer values of v a and v b corresponding value of v lcd in v 0 v lcd switched off 22 3.58 44 5.34 11.90 23 3.66 45 5.42 21.98 24 3.74 46 5.50 32.06 25 3.82 47 5.58 42.14 26 3.90 48 5.66 52.22273.98495.74 62.30284.06505.82 72.38294.14515.90 82.46304.22525.98 92.54314.30536.06 10 2.62 32 4.38 54 6.14 11 2.70 33 4.46 55 6.22 12 2.78 34 4.54 56 6.30 13 2.86 35 4.62 57 6.38 14 2.94 36 4.70 58 6.46 15 3.02 37 4.78 59 6.54 16 3.10 38 4.86 60 6.62 17 3.18 39 4.94 61 6.70 18 3.26 40 5.02 62 6.78 19 3.34 41 5.10 63 6.86 20 3.42 42 5.18 21 3.50 43 5.26
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 11 of 82 nxp semiconductors pcf21219 lcd driver for character displays remarks: ? values producing more than 6.5 v at operating temperature are not allowed. operation above this voltage may dama ge the device. when programming the operating voltage, the temperature coefficient of v lcdout must be taken into account. ? values below 2.5 v are below the specified operating range of the chip and are therefore not allowed. when the lcd supply voltage is generated on-chip, the v lcd pins should be decoupled to v ss with a suitable capacitor. the generated v lcdout is independent of v dd and is temperature compensated. in equation 2 the internal charge pump is not considered. however, if the supplied voltage to v dd2 and v dd3 is below the required v lcd , it is necessary to use the internal charge pump. the multiplication factor indicates t he number of stages used to increase the voltage. at multiplication factor 2 one, at mu ltiplication factor 3 two and at multiplication factor 4, three stages are used. a multiplicat ion factor of for example, 4 does not mean that a voltage of 4 ? v dd2,3 is generated in the internal high-voltage generator. the charge pump is part of a control lo op. this means that the control loop aims to regulate v lcd at the programmed value. the ito track resistance limit the speed by which the capacitors can be charged. the multiplication factor exceeds the required v lcd under all circumstances (that is, at low temperatures and along with the temperature compensation, see section 10.2.2.4 ). if still a higher multiplication factor is chosen, v lcd will remain as set by equation 2 but the ripple will increase. the increase in ripple can be counteracted by increasing the external decoupling capacitor at v lcd . a higher multiplication factor will also result in a higher current consumption (see section 16.6 ). however the current that can be delivered will be higher, for example, for larger display area. when the v lcd generator and the direct mode are switched off, an external voltage may be supplied at connected pins v lcdin and v lcdout . v lcdin and v lcdout may be higher or lower than v dd2 . in direct mode (see icon_ctl instruction, section 10.2.3.3 ) the internal v lcd generator is turned off and the v lcdout output voltage is directly connected to v dd2 . this reduces the current consumption depending on v dd2 value and lcd liquid properties. the v lcd generator ensures that, as long as v dd2 and v dd3 are in the valid range (2.5 v to 4 v), the required peak voltage v lcd = 6.5 v can be generated at any time. 8.5 lcd bias voltage generator the intermediate bias voltages for the lcd display are also generated on-chip. this removes the need for an external resistive bi as chain and significantly reduces the system current consumption. the optimum value of v lcd depends on the multiplex rate, the lcd threshold voltage (v th ) and the number of bias levels. using a 5-level bias scheme for the 1:18 multiplex rate allows v lcd < 5 v for most lcd liquids. the intermediate bias levels for the different multiplex rates are shown in ta b l e 7 . these bias levels are automatically set to the given values when switching to the corresponding multiplex rate.
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 12 of 82 nxp semiconductors pcf21219 lcd driver for character displays the rms on-state voltage (v on(rms) ) for the lcd is calculated with equation 3 and the rms off-state voltage (v off(rms) ) with equation 4 : (3) (4) where the values of a are a=2 for 1 4 bias a=3 for 1 5 bias and the values for n are n = 2 for 1:2 multiplex rate n = 9 for 1:9 multiplex rate n = 18 for 1:18 mu ltiplex rate. discrimination (d) is the ratio of v on(rms) to v off(rms) and is determined from equation 5 . discrimination is a term which is defined as the ratio of the on and off rms voltage across a segment. it can be thought of as a measurement of contrast. (5) 8.5.1 electro-optical performance suitable values for v on(rms) and v off(rms) are dependant on the lcd liquid used. the rms voltage, at which a pixel will be switched on or off, determine the transmissibility of the pixel. for any given liquid, there are two threshold values defined. one point is at 10 % relative transmission (at v low ) and the other at 90 % relative transmission (at v high ), see figure 3 . for a good contrast performance, the following rules should be followed: (6) table 7. bias levels as a function of multiplex rate multiplex rate number of bias levels bias voltages v 1 v 2 v 3 v 4 v 5 v 6 1:18 5 v lcd v ss 1:9 5 v lcd v ss 1:2 4 v lcd v ss 3 4 -- - v lcd v ss ? ?? 1 2 -- - v lcd v ss ? ?? 1 2 -- - v lcd v ss ? ?? 1 4 -- - v lcd v ss ? ?? 3 4 -- - v lcd v ss ? ?? 1 2 -- - v lcd v ss ? ?? 1 2 -- - v lcd v ss ? ?? 1 4 -- - v lcd v ss ? ?? 2 3 -- - v lcd v ss ? ?? 2 3 -- - v lcd v ss ? ?? 1 3 -- - v lcd v ss ? ?? 1 3 -- - v lcd v ss ? ?? v on rms ?? a 2 2a n ++ n 1a + ?? ? ----------------------------- - v lcd = v off rms ?? a 2 2a ? n + n 1a + ?? ? ----------------------------- - v lcd = d v on rms ?? off rms ?? ---------------------- - a1 + ?? n 1 ? ?? ?? n 1 ? ?? ------------------------------------------- - == v on rms ?? v high ?
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 13 of 82 nxp semiconductors pcf21219 lcd driver for character displays (7) v on(rms) and v off(rms) are properties of the display driver and are affected by the selection of a, n (see equation 3 to equation 5 ) and the v lcd voltage. v low and v high are properties of the lcd liquid and can be provided by the module manufacturer. it is important to match the module properties to those of the driver in order to achieve optimum performance. 8.6 lcd row and column drivers the pcf21219 contains 18 row and 80 column drivers, which drive the appropriate lcd bias voltages in sequence to the display in accordance with the data to be displayed. r17 and r18 drive the icon rows. unused outputs should be left open. the bias voltages and the timing are selected automatically when the number of lines in the display is selected. figure 4 to figure 6 show typical waveforms. the waveforms used to drive lc displays inherently produce a dc voltage across the display cell. the pcf21219 compensates for the dc voltage by inverting the waveforms on alternate frames (called frame inversion mode or driving scheme a). fig 3. electro-optical characteristic: relative transmission curve of the liquid v off rms ?? v low ? 9 506 >9@    2)) 6(*0(17 *5(< 6(*0(17 21 6(*0(17 9 orz 9 kljk 5hodwlyh7udqvplvvlrq ddp
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 14 of 82 nxp semiconductors pcf21219 lcd driver for character displays state(n) marks intersection(row(x),col(n)) of pixel(x,n) v state(n) (t) = v col(n) (t) ? v row(x) (t). v state1 (t) = v col1 (t) ? v row1 (t). v state2 (t) = v col2 (t) ? v row1 (t). fig 4. waveforms for the 1:18 multiplex drive mode with 5 bias levels; character mode & iudphq iudphq vwdwh rq vwdwh rii & & & & 5 5 5 5 5 5 5 5 5 5 5 5 52: 52: 52: 52: 52: 52: &2/ &2/ 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9 /&' 9 /&' 9 /&' 9 /&'  9 /&'  9 /&' 9 /&' 9 /&'  9 /&'  9 /&' 9 /&'    vwdwh vwdwh    ddd  
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 15 of 82 nxp semiconductors pcf21219 lcd driver for character displays state(n) marks intersection(row(x),col(n)) of pixel(x,n) v state(n) (t) = v col(n) (t) ? v row(x) (t). v state1 (t) = v col1 (t) ? v row1 (t). v state2 (t) = v col2 (t) ? v row1 (t). fig 5. waveforms for the 1:9 multiplex drive mode with 5 bias levels; character mode, r9 to r16 and r18 open & vwdwh rii vwdwh rq & & & & 5 5 5 5 5 5 5 5 5 ddd      iudphq iudphq 52: 9 /&' 9  9  9  9  9 66 52: 52: 52: 52: &2/ &2/ 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9  9  9  9  9 66 9 /&' 9 /&' 9 /&' 9 /&' 9 /&'  9 /&'  9 /&' 9 /&' 9 /&'  9 /&'  9 /&' 9 /&' vwdwh vwdwh
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 16 of 82 nxp semiconductors pcf21219 lcd driver for character displays state(n) marks intersection(row(x),col(n)) of pixel(x,n) v state(n) (t) = v col(n) (t) ? v row(x) (t). v state1 (t) = v col1 (t) ? v row17 (t). v state2 (t) = v col2 (t) ? v row17 (t). v state3 (t) = v col3 (t) ? v row1 to 16 (t). fig 6. waveforms for the 1:2 multiplex drive mode with 4 bias levels; icon mode rqo\lfrqvduh gulyhq 08; ddd vwdwh 21 vwdwh 2)) vwdwh 2)) &2/ &2/ iudphq iudphq 52: 52: 52:wr &2/ 212)) &2/ 212)) &2/ 212)) &2/ 212)) 9 /&'   9 66 9 /&'   9 66 9 /&'   9 66 9 /&'   9 66 9 /&'   9 66 9 /&'   9 66 9 /&'   9 66 9 /&' 9 /&' 9 /&'  9 /&' 9 /&' 9 /&' 9 /&' 9 /&' 9 /&'  9 /&' 9 /&' 9 /&' 9 /&' 9 /&' 9 /&'  9 /&' 9 /&' 9 /&' vwdwh vwdwh vwdwh
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 17 of 82 nxp semiconductors pcf21219 lcd driver for character displays 9. display data ram and rom 9.1 ddram the display data ram (ddram) stores up to 80 characters of display data represented by 8-bit character codes. ram locations whic h are not used for storing display data can be used as general purpose ram. the basic ram to display addressing scheme is shown in figure 7 , figure 8 and figure 9 . with no display shift the characters represente d by the codes in the first 32 ram locations starting at address 00h are displayed in line 1. all addresses are shown in hex. fig 7. ddram to display mapping: no shift all addresses are shown in hex. fig 8. ddram to display mapping: right shift      ' ( )   & ' ( ) qrqglvsod\hg''5$0dgguhvvhv          ' ( )        ' ( )       qrqglvsod\hg''5$0dgguhvv olqh olqh pjn ''5$0 dgguhvv olqhglvsod\08;prgh       glvsod\ srvlwlrq ''5$0 dgguhvv olqhglvsod\ pjo           & ' ( & ' ( ''5$0 dgguhvv olqh olqh olqhglvsod\08;prgh    
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 18 of 82 nxp semiconductors pcf21219 lcd driver for character displays when data is written to or read from the ddram, wrap-around occurs from the end of one line to the start of the next line. when the display is shifted each line wraps around within itself, independently of the others. thus all lines are shifted and wrapped around together. the address ranges and wrap-around operati ons for the various modes are shown in ta b l e 8 . 9.2 cgrom the character generator rom (cgrom) contains 240 character patterns in a 5 ? 8dot format from 8-bit character codes. all addresses are shown in hex. fig 9. ddram to display mapping: left shift table 8. address space and wrap-around operation mode 1 ? 32 2 ? 16 1 ? 16 address space 00h to 4fh 00h to 27h; 40hto67h 00h to 27h read/write wrap-around (moves to next line) 4fhto00h 27hto40h; 67hto00h 27h to 00h display shift wrap-around (stays within line) 4fhto00h 27hto00h; 67hto40h 27h to 00h         ( )  ( )  ''5$0 dgguhvv olqh olqh olqhglvsod\08;prgh                          ( )  glvsod\ srvlwlrq ''5$0 dgguhvv olqhglvsod\ pjn
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 19 of 82 nxp semiconductors pcf21219 lcd driver for character displays the first column (0000) is the cgram, the other 15 columns (0001 to 1111) are the cgrom. fig 10. character set ?r? in cgrom pjo [[[[                  xsshu elwv orzhu elwv [[[[ [[[[ [[[[ [[[[ [[[[ [[[[ [[[[ [[[[ [[[[ [[[[ [[[[ [[[[ [[[[ [[[[ [[[[               
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 20 of 82 nxp semiconductors pcf21219 lcd driver for character displays 9.3 cgram up to 16 user defined characters may be stored in the character generator ram (cgram). the cgrom and cgram use a common address space, of which the first column is reserved for the cgram (see figure 10 ). an example of a user defined character is given in section 16.14 on page 63 . figure 11 shows the addressing principle for the cgram. (1) character code bit 0 to bit 3 correspond to cgram address bit 3 to bit 6. (2) cgram address bit 0 to bit 2 designate the character pattern line position. the 8th line is the cursor position and display is performed by logical or with the cursor. data in the 8th line will appear in the cursor position. lines are numbered from 0 to 7. (3) character pattern column positions correspond to cgram data bit 0 to bit 4, as shown in figure 10 . (4) as shown in figure 10 , cgram character patterns are selected when characte r code bit 4 to bit 7 are all logic 0. cgram data = logic 1 corresponds to selection for display. (5) only bit 0 to bit 5 of the cgram address are set by the set_cgram command. bit 6 can be set using the set_ddram command in the valid address range or by using the auto-increment feature during cgram write. all bits from bit 0 to bit 6 can be read using the bf_ac instruction. fig 11. relationship between cgram addresses, data and display patterns frd    kljkhu rughu elwv orzhu rughu elwv orzhu rughu elwv kljkhu rughu elwv orzhu rughu elwv kljkhu rughu elwv                                                                                   fkdudfwhufrghv ''5$0gdwd &*5$0 dgguhvv fkdudfwhusdwwhuqv &*5$0gdwd                                                    fkdudfwhufrgh &*5$0gdwd fkdudfwhu sdwwhuq h[dpsoh fxuvru srvlwlrq fkdudfwhu sdwwhuq h[dpsoh      
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 21 of 82 nxp semiconductors pcf21219 lcd driver for character displays 9.4 cursor control circuit the cursor control circuit generates the cursor underline as shown in figure 12 at the ddram address contained in the address counter. fig 12. cursor display example fig 13. example of displays with icons fxuvru ? grwfkdudfwhuirqw fxuvruglvsod\h[dpsoh ddd fxuvru urz urz urz urz urz urz urz urz urz lfrq lfrq ddd
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 22 of 82 nxp semiconductors pcf21219 lcd driver for character displays 10. registers the pcf21219 has two 8-bit registers, an in struction register and a data register. only these two registers can be directly controlled by the microcontroller. before an internal operation, the control information is stored temporarily in these registers, to allow interfacing to various types of microcontrolle rs which operate at different speeds or to allow interface to peripheral control ics. the instruction set for the pa rallel interface is shown in ta b l e 1 2 together with their execution time. details about the parallel interface can be found in section 11.1 . examples of operations on a 4-bit bus are given in ta b l e 3 9 , on a 8-bit bus in ta b l e 4 0 , ta b l e 4 1 and table 42 . when using the i 2 c-bus, the instruction has to be commenced with a control byte as shown in ta b l e 9 . details about the i 2 c-bus interface can be found in section 11.2 . an example of operations on the i 2 c-bus is given in ta b l e 4 3 . [1] r/w is set together with the slave address (see ta b l e 3 3 ). instructions are of 4 types, those that: 1. designate pcf21219 functions like display format, data length, etc. 2. set internal ram addresses 3. perform data transfer with internal ram 4. others, like read ?busy flag? and read ?address counter? in normal use, type 3 instructions are used most frequently. however, automatic incrementing by 1 (or decrementing by 1) of in ternal ram addresses after each data write lessens the microcontroller program load. the dis play shift in particular can be performed concurrently with display data write, enabling the designer to develop systems in minimum time with maximum programming efficiency. during internal opera tion, no instructions other than the bf_ac instruction will be executed. because the busy flag is set to logic 1 while an instruction is being executed, check to ensure it is logic 0 before sending the next instruction or wait for the maximum instruction execution time, as given in ta b l e 1 2 . an instruction sent while the busy flag is logic 1 will not be executed. table 9. instruction set for i 2 c-bus commands control byte command byte i 2 c-bus command cors 000000db7db6db5db4db3db2db1db0 [1] table 10. control byte bit description bit symbol value description 7 co 0 last co ntrol byte 1 another control byte follows after data/command 6 rs 0 instruction register selected 1 data register selected 5 to 0 - 0 default logic 0
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 23 of 82 nxp semiconductors pcf21219 lcd driver for character displays the rs bit determines which regi ster will be accessed and the r/w bit indicates if it is a read or a write operation (see ta b l e 11 ). [1] there is only write access to the instruction regist er, but read access to the busy flag (bf) and the address counter (ac) of the bf_ac instruction (see section 10.2.1.2 ). [2] write and read access. details of the instructions are ex plained in subsequent sections. 10.1 data register the data register temporarily stores data to be read from the ddram and cgram. prior to being read by the read_data instruction, data from the ddram or cgram, corresponding to the address in the instruction register, is written to the data register. 10.2 instruction register the instruction register stores instruction co des such as clear_display, curs_disp_shift, and address information for the display data ram (ddram) and character generator ram (cgram). the instruction register can be written to but not read from by the system controller. the instruction register is sectioned into basic, standard and extended instructions. bit h = 1 of the function_s et instruction (see section 10.2.1.1 ) sets the chip into extended instruction set mode. table 11. register access selection symbol value description rs register select 0 instruction register [1] 1 data register [2] r/w read/write 0 write operation 1 read operation
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 24 of 82 nxp semiconductors pcf21219 lcd driver for character displays [1] the bits 0 to 7 correspond with the data bus lines db0 to db7. [2] f osc cycles. [3] no operation. [4] do not use. table 12. instruction register overview instruction bits [1] required clock cycles [2] reference rs r/w 7 6 5 4 3 2 1 0 basic instructions (bit h = 0 or 1) nop [3] 00000000003 - function_set 00001dl0mslh3 section 10.2.1.1 bf_ac 01bfac 0 section 10.2.1.2 read_data 1 1 read_data 3 section 10.2.1.3 write_data 1 0 write_data 3 section 10.2.1.4 standard instructions (bit h = 0) clear_display 0000000001165 section 10.2.2.1 return_home 00000000103 section 10.2.2.2 entry_mode_set00000001i_ds3 section 10.2.2.3 display_ctl 0000001dc03 section 10.2.2.4 curs_disp_shift 000001scrl003 section 10.2.2.5 set_cgram 0 0 0 1 acg 3 section 10.2.2.6 set_ddram 0 0 1 add 3 section 10.2.2.7 extended instructions (bit h = 1) reserved [4] 0000000001- - screen_conf 000000001l3 section 10.2.3.1 disp_conf 00000001pq3 section 10.2.3.2 icon_ctl 0000001im0dm3 section 10.2.3.3 temp_ctl 00000100tc1tc23 section 10.2.3.4 hv_gen 0 0 0 10000s1s03 section 10.2.3.5 vlcd_set 0 0 1 v va or vb 3 section 10.2.3.6
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 25 of 82 nxp semiconductors pcf21219 lcd driver for character displays 10.2.1 basic instructions (bit h = 0 or 1) 10.2.1.1 function_set [1] when 4-bit width is selected, data is transmitted in tw o cycles using the parallel-bus. in a 4-bit application ports db3 to db0 should be left open-circuit (internal pull-ups). [2] default value after power-on in i 2 c-bus mode. [3] no impact if sl = 1. [4] due to the internal pull-ups on db3 to db0 in a 4-bi t application, the first function_set after power-on sets bits m, sl and h to logic 1. a second function_set must be sent to set bits m, sl and h to the required values. [5] independent of bit m and bit l of the screen_conf instruction (see section 10.2.3.1 ). only row 1 to row 8 and row 17 are used. all other rows must be left o pen-circuit. the ddram map is the same as in the 2 ? 16 character display mode, however, t he second line cannot be displayed. 10.2.1.2 bf_ac instructions [1] it is recommended that the bf status is checked before the next write operation is started. table 13. function_set bit description bit symbol value description rs - 0 see ta b l e 11 r/w -0 7 to 5 - 001 fixed value 4dl interface data length (for parallel mode only) 0 [1] 2 ? 4 bits (db7 to db4) 1 [2] 8 bits (db7 to db0) 3 - 0 unused 2m [3] number of display lines 0 1 line ? 32 characters 1 [4] 2 line ? 16 characters 1sl multiplex mode 0 1:18 multiplex drive mode, 1 ? 32 or 2 ? 16 character display 1 [4] [5] 1:9 multiplex drive mode, 1 ? 16 character display 0h instruction set control 0 basic instruction set plus standard instruction set 1 [4] basic instruction set plus extended instruction set table 14. bf_ac bit bit symbol value description rs - 0 see ta b l e 11 r/w -1 7bf [1] read busy flag 0 next instruction will be executed 1 internal operation is in progress; next instruction will not be executed until bf = 0 6 to 0 ac 0000000 to 1111111 read address counter
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 26 of 82 nxp semiconductors pcf21219 lcd driver for character displays busy flag: the busy flag indicates the internal status of the pcf21219. a logic 1 indicates that the chip is bu sy and further instru ctions will not be acce pted. the busy flag is output to pin db7 when bit rs = 0 and bit r/w = 1. instructions should only be started after checking that the busy flag is at logi c 0 or after waiting for the required number of cycles. address counter: the address counter is used by both cgram and ddram, and its value is determined by the previous set_ cgram and set_ddram instruction. after a read/write operation the address counter is automatically incremented or decremented by 1. the address counter value is output to the bus (db6 to db0) when bit rs = 0 and bit r/w =1. 10.2.1.3 read_data read_data from cgram or ddram: read_data reads binary 8-bit data from the cgram or ddram. the most recent ?set address? command (set_cgram or set_ddram) determines whether the cgram or ddram is to be read. the read_data instruction gates the content of the data register to the bus while pin e is high. after pin e goes low again, internal operation increments (or decrements) the address counter and stores ram data correspo nding to the new address counter into the data register. there are only three instructions that update the data register: ? set_cgram ? set_ddram ? read_data from cgram or ddram other instructions (e.g. write_data, curs_disp_shift, clear_display and return_home) do not modify the value of the data register. 10.2.1.4 write_data write_data to cgram or ddram: write_data writes binary 8-bit data to the cgram or the ddram. table 15. read_data bit description bit symbol value description rs - 1 see ta b l e 11 r/w -1 7 to 0 read_data 00000000 to 11111111 read data from cgram or ddram table 16. write_data bit description bit symbol value description rs - 1 see ta b l e 11 r/w -0 7 to 0 write_data 00000000 to 11111111 write data to cgram or ddram
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 27 of 82 nxp semiconductors pcf21219 lcd driver for character displays the previous set_cgram or set_ddram comm and determines if data is written into cgram or ddram. after writin g, the address counter automatically increments or decrements by 1, in accordance with the entry_mode_set (see section 10.2.2.3 ). only bit 4 to bit 0 of cgram data are valid, bit 7 to bit 5 are ?don?t care?. 10.2.2 standard instructions (bit h = 0) 10.2.2.1 clear_display clear_display: writes usually the character code 20h (blank pattern) into all ddram addresses except for the character set ?r? where the character code 20h is not a blank pattern. when using character set ?r?, the following alternative inst ruction set has to be used: 1. switch display off (display_ctl, bit d = 0). 2. write a blank pattern into all ddram addresses (write_data). 3. switch display on (display_ctl, bit d = 1). in addition clear_display ? sets the ddram address counter to logic 0 ? returns the display to its original position, if it was shifted. thus, the display disappears and the cursor goes to the left edge of the display ? sets entry mode bit i_d = 1 (increment mode); bit s of entry mode does not change the instruction clear_display requires extra execution time. this may be allowed by checking the busy flag bit bf or by waitin g until the 165 clock cycles have elapsed. the latter must be applied where no read-back options are foreseen, as in some chip-on-glass (cog) applications. 10.2.2.2 return_home return_home: sets the ddram address counter to logic 0 and switches a shifted display back to an unshifted state. the ddram content remains unchanged. the cursor goes to the left of the first display line. bi t i_d and bit s of the entry_mode_set instruction remain unchanged. table 17. clear_display bit description bit symbol value description rs - 0 see ta b l e 11 r/w -0 7 to 0 - 00000001 fixed value table 18. return_home bit description bit symbol value description rs - 0 see ta b l e 11 r/w -0 7 to 0 - 00000010 fixed value
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 28 of 82 nxp semiconductors pcf21219 lcd driver for character displays 10.2.2.3 entry_mode_set bit i_d: when bit i_d = 1 the ddram or cgram address increments by 1 when data is written into or read from the ddram or cgram. the cursor position moves to the right. when bit i_d = 0 the ddram or cgram address decrements by 1 when data is written into or read from the ddram or cgram. the cursor position moves to the left. the cursor underline is inhibited when the cgram is accessed. bit s: when bit s = 0, the display does not shift. during ddram write, when bit s = 1 and bit i_d = 0, the entire display shifts to the right; when bit s = 1 and bit i_d = 1, the entire display shifts to the left. thus it appears as if the cursor stands still and the display moves. the display does not shift when reading from the ddram, or when writing to or reading from the cgram. 10.2.2.4 display_ctl instructions bit d: the display is on when bit d = 1 and off when bit d = 0. display data in the ddram is not affected and can be displayed immediately by setting bit d = 1. when the display is off (bit d = 0) the chip is in partial power-down mode: table 19. entry_mode_set bit description bit symbol value description rs - 0 see ta b l e 11 r/w -0 7 to 2 - 000001 fixed value 1i_d address increment or decrement 0 ddram or cgram address decrements by 1, cursor moves to the left 1 ddram or cgram address increments by 1, cursor moves to the right 0s shift display to the left or right 0 display does not shift 1display shifts table 20. display_ctl bit description bit symbol value description rs - 0 see ta b l e 11 r/w -0 7 to 3 - 00001 fixed value 2d display on or off 0 display is off; chip is in power-down mode 1 display is on 1c cursor on or off 0 cursor is off 1 cursor is on 0 - 0 fixed value
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 29 of 82 nxp semiconductors pcf21219 lcd driver for character displays ? the lcd outputs are connected to v ss ? the v lcd generator and bias generator are turned off three oscillator cycles are required after sending the ?display of f? instruction to ensure all outputs are at v ss , afterwards the oscillator can be st opped. if the oscillator is running during partial power-down mode (?display off?) the chip can still execute instructions. even lower current consumption is obtained by inhibiting the oscillator (pin osc to v ss ). to e n s u r e i dd <1 ? a: ? the parallel bus ports db7 to db0 should be connected to v dd ? pins rs and r/w should be connected to v dd or left open-circuit ? pin pd should be connected to v dd recovery from power-down mode: ? pin pd should be connected back to v ss ? if necessary pin osc should be connected back to v dd ? a display_ctl instruction wit h bit d = 1 should be sent bit c: the cursor is displayed when bit c = 1 and inhibited when bit c = 0. even if the cursor disappears, bit i_d and bit s (see section 10.2.2.3 ) remain in operation during display data write. the cursor is displayed using 5 dots in the 8th line (see figure 12 ). 10.2.2.5 curs_disp_shift bits sc and rl: curs_disp_shift moves the cursor position or the display to the right or left without writing or reading display data. this function is used to correct a character or move the cursor through the display. in 2-line displays, the cursor moves to the next line when it passes the last position (40) of the line. when the displayed data is shifted repeatedly all lines shift at the same time; displayed characters do not shift into the next line. the address counter content does not change if the only action performed is shift display (sc = 1) but increments or decrements with the shift cursor (sc = 0). table 21. curs_disp_shift bit description bit symbol value description rs - 0 see table 11 r/w -0 7 to 4 - 0001 fixed value 3sc cursor move or display shift 0 move cursor 1 shift display 2rl shift or move to the right or left 0 left shift or move 1 right shift or move 1 to 0 - 00 fixed value
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 30 of 82 nxp semiconductors pcf21219 lcd driver for character displays 10.2.2.6 set_cgram set_cgram: sets the cgram address bits acg[5:0] into the address counter. data can then be written to or read from the cgram. remark: the cgram address uses the same addr ess register as the ddram address. this register consists of 7 bits. but with the set_cgram command, only bit 5 to bit 0 are set. bit 6 can be set using the set_ddram command first, or by using the auto-increment feature during cgram write. all bits 6 to 0 can be read using the bf_ac instruction. when writing to the lower part of the cgram, ensure that bit 6 of the address is not set (e.g. by an earlier ddram write). 10.2.2.7 set_ddram set_ddram: sets the ddram address bits add[6:0] into the address counter. data can then be written to or read from the ddram. table 22. set_cgram bit description bit symbol value description rs - 0 see table 11 r/w -0 7 to 6 - 01 fixed value 5 to 0 acg 000000 to 111111 set cgram address table 23. set_ddram bit description bit symbol value description rs - 0 see table 11 r/w -0 7 - 1 fixed value 6 to 0 add 0000000 to 1111111 set ddram address
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 31 of 82 nxp semiconductors pcf21219 lcd driver for character displays 10.2.3 extended instructions (bit h = 1) 10.2.3.1 screen_conf screen_conf: ? if bit l = 0, then the two halves of a split screen are connected in a standard way i.e. column 1/81, 2/82 to 80/160. ? if bit l = 1, then the two halves of a split sc reen are connected in a mirrored way i.e. column 1/160, 2/159 to 80/81. this a llows single layer pcb or glass layout. 10.2.3.2 disp_conf bit p: the p bit is used to flip the display left to right by mirroring the column data, as shown in figure 14 . this allows the display to be viewed from behind instead of front and enhances the flexibility in the assembly of equipment and avoids complicated data manipulation within the controller. table 24. screen_conf bit description bit symbol value description rs - 0 see table 11 r/w -0 7 to 1 - 0000001 fixed value 0l screen configuration 0 split screen standard connection 1 split screen mirrored connection table 25. disp_conf bit description bit symbol value description rs - 0 see table 11 r/w -0 7 to 2 - 000001 fixed value 1p display column configuration 0 column data: left to right; column data is displayed from column 1 to column 80 1 column data: right to left; column data is displayed from column 80 to column 1 0q display row configuration 0 row data: top to bottom; row data is displayed from row 1 to row 16 and icon row data in row 17 and row 18 in single line mode (sl = 1) row data is displayed from row 1 to row 8 and icon row data in row 17 1 row data: bottom to top; row data is displayed from row 16 to row 1 and icon row data in row 18 and row 17 in single line mode (sl = 1) row data is displayed from row 8 to row 1 and icon row data in row 17
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 32 of 82 nxp semiconductors pcf21219 lcd driver for character displays bit q: the q bit flips the display top to bottom by mirroring the row data, as shown in figure 15 . combination of bit p and bit q: a combination of p and q allows the display to be rotated horizontally and vertically by 180 degree, as shown in figure 16 . this is useful for viewing the display from the opposite edge. fig 14. use of bit p fig 15. use of bit q fig 16. use of bit p and bit q ddd 3    3    4    4    ddd 4    4    3    3    ddd 4    4    3    3   
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 33 of 82 nxp semiconductors pcf21219 lcd driver for character displays 10.2.3.3 icon_ctl the pcf21219 can drive up to 160 icons, see figure 17 . bit im: when bit im = 0, the chip is in character mode. in the character mode characters and icons are driven (multiplex drive mode 1:18 or 1:9). the v lcd generator, if used, produces the v lcdout voltage programmed with register v a . when bit im = 1, the chip is in icon mode. in the icon mode only the icons are driven (multiplex drive mode 1:2). the v lcd generator, if used, produces the v lcdout voltage as programmed with register v b . bit dm: when dm = 0, the chip is not in the direct mode. either the internal v lcd generator or an external voltage may be used to achieve v lcd . when dm = 1, the chip is in direct mode. the internal v lcd generator is turned off and the output v lcdout is directly connected to v dd2 (i.e. the v lcd generator supply voltage). remark: in direct mode, no external v lcd is possible. table 26. icon_ctl bit description bit symbol value description rs - 0 see table 11 r/w -0 7 to 3 - 00001 fixed value 2im icon mode 0 character mode, full display 1 icon mode, only icons displayed 1 - 0 fixed value 0dm direct mode 0off 1on table 27. normal/icon mode operation bit im mode v lcdout 0 character mode generated from v a 1 icon mode generated from v b fig 17. cgram to icon mapping &2/wr       glvsod\ 52:  52:  eorfnrifroxpqv &2/wr       &2/wr           pjo
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 34 of 82 nxp semiconductors pcf21219 lcd driver for character displays the direct mode can be used to reduce the cu rrent consumption when the required output voltage v lcdout is close to the v dd2 supply voltage. this can be the case in icon mode or in mux 1:9 (depending on lcd liquid properties). 10.2.3.4 temp_ctl the bit-field tc[1:0] selects the temperature coefficient for the internally generated v lcdout (see ta b l e 2 9 ). 10.2.3.5 hv_gen a software configurable voltage mu ltiplier is incorp orated in the v lcd generator and can be set via the hv_gen command. the voltage multiplier control can be used to reduce current consumption by disconnecting internal voltage multiplier stages, depending on the required v lcdout output voltage (see ta b l e 3 1 ). table 28. temp_ctl bit description bit symbol value description rs - 0 see table 11 r/w -0 7 to 2 - 000100 fixed value 1 to 0 tc[1:0] 00 to 11 temperature coefficient table 29. tc[1:0] selection of v lcd temperature coefficient tc[1:0] typical value description 00 ? 0.16 %/k v lcd temperature coefficient 0 (default value) 10 ? 0.18 %/k v lcd temperature coefficient 1 01 ? 0.21 %/k v lcd temperature coefficient 2 11 ? 0.24 %/k v lcd temperature coefficient 3 table 30. hv_gen bit description bit symbol value description rs - 0 see table 11 r/w -0 7 to 2 - 010000 fixed value 1 to 0 s[1:0] 00 to 11 voltage multiplier table 31. voltage multiplier control bits s[1:0] description 00 set v lcd generator stages to 1 (2 ? voltage multiplier) 01 set v lcd generator stages to 2 (3 ? voltage multiplier) 10 set v lcd generator stages to 3 (4 ? voltage multiplier) 11 do not use
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 35 of 82 nxp semiconductors pcf21219 lcd driver for character displays 10.2.3.6 vlcd_set the v lcd value is calculated with the equation 2 on page 10 . the multiplication factor is programmed by instruction. two on-chip registers (v a and v b ) hold the multiplication factor for the character mode and the ic on mode, respectively. the generated v lcdout value is independent of v dd , allowing battery operation of the chip. v x programming: 1. send function_set instruction with bit h = 1. 2. send vlcd_set instruction to write to the voltage register: a. bit 7 = 1 and bit 6 = 0: bit 5 to bit 0 are the multiplication factor for v lcd of character mode (v a ). b. bit 7 = 1 and bit 6 = 1: bit 5 to bit 0 are the multiplication factor for v lcd of icon mode (v b ). c. bit 5 to bit 0 = 0 switches v lcd generator off (when selected). d. during ?display off?/power-down the v lcd generator is also disabled. 3. send function_set instruction with bit h = 0 to resume normal programming. table 32. vlcd_set bit description bit symbol value description rs - 0 see table 11 r/w -0 7 - 1 fixed value 6v set register v a or v b 0 set register v a 1 set register v b 5 to 0 v a or v b 000000 to 111111 factor for calculating v lcd
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 36 of 82 nxp semiconductors pcf21219 lcd driver for character displays 11. basic architecture 11.1 parallel interface the pcf21219 can send data in either two 4-bi t operations or one 8-bit operation and can thus interface to 4-bit or 8-bit microcontrollers. in 8-bit mode data is transferred as 8-bit bytes using the 8 ports db7 to db0. three further control lines e, rs and r/w are required. in 4-bit mode data is transferred in two cycles of 4 bits each using ports db7 to db4 for the transaction. the higher order bits (corresponding to range of bit 7 to bit 4 in 8-bit mode) are sent in the first cycle and the lower or der bits (bit 3 to bit 0 in 8-bit mode) in the second cycle. data transfer is complete after two 4-bit data transfers. it should be noted that two cycles are also requir ed for the busy flag check. 4- bit operation is selected by instruction (see figure 18 to figure 20 for examples of bus protocol). in 4-bit mode, ports db3 to db0 must be left open-circuit. they are pulled up to v dd internally. fig 18. 4-bit transfer example pjd 56 ( '% 5: '% '% '% lqvwuxfwlrq zulwh exv\iodjdqg dgguhvvfrxqwhuuhdg gdwduhjlvwhu uhdg ,5 ,5 %) $& '5 '5 ,5 ,5 $& $& '5 '5 ,5 ,5 $& $& '5 '5 ,5 ,5 $& $& '5 '5
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 37 of 82 nxp semiconductors pcf21219 lcd driver for character displays ir7, ir3: instruction 7th, 3rd bit. ac3: address counter 3rd bit. d7, d3: data 7th, 3rd bit. fig 19. an example of 4-bit data transfer timing sequence pjd 56 ( lqwhuqdo '% 5: lqwhuqdorshudwlrq ,5 ,5 $& ' ' qrw exv\ $& exv\ lqvwuxfwlrq zulwh exv\iodj fkhfn exv\iodj fkhfn lqvwuxfwlrq zulwh fig 20. example of busy flag checking timing sequence pjd lqvwuxfwlrq zulwh exv\iodj fkhfn exv\iodj fkhfn exv\iodj fkhfn lqvwuxfwlrq zulwh lqwhuqdorshudwlrq 56 ( lqwhuqdo '% 5: gdwd exv\ exv\ qrw exv\ gdwd
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 38 of 82 nxp semiconductors pcf21219 lcd driver for character displays 11.2 i 2 c-bus interface the i 2 c-bus is for bidirectional, two-line communication between different ics or modules. the two lines are the serial data line (sda) and the serial clock line (scl). both lines must be connected to a positive supply via pull- up resistors. data transfer may be initiated only when the bus is not busy. each byte of eight bits is followed by an acknowledge bit. a slave receiver which is addressed must generate an acknowledg e after the reception of each byte. also a master receiver must generate an ac knowledge after the reception of each byte that has been clocked out of the slave transmitter. the device that acknowledges must pull-down the sda line during the acknowledge clock pulse, so that the sda line is stable low during the high period of the acknowledge related clock pulse (set-up and hold time s must be taken into consideration). a master receiver must signal an end of da ta to the transmitter by not generating an acknowledge bit on the last byte that has been clocked out of the slave. in this event the transmitter must leave the data line high to enable the master to generate a stop condition. fig 21. system configuration fig 22. bit transfer fig 23. definition of start and stop conditions pjd 6'$ 6&/ 0$67(5 75$160,77(5 5(&(,9(5 0$67(5 75$160,77(5 6/$9( 75$160,77(5 5(&(,9(5 6/$9( 5(&(,9(5 0$67(5 75$160,77(5 5(&(,9(5 pef gdwdolqh vwdeoh gdwdydolg fkdqjh rigdwd doorzhg 6'$ 6&/ pef 6'$ 6&/ 3 6723frqglwlrq 6'$ 6&/ 6 67$57frqglwlrq
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 39 of 82 nxp semiconductors pcf21219 lcd driver for character displays 11.2.1 i 2 c-bus protocol two i 2 c-bus slave addresses (0111 010 and 0111 011) are reserved for the pcf21219.the entire i 2 c-bus slave address byte is shown in ta b l e 3 3 . bit 1 of the slave address byte, that a pcf 21219 will respond to, is defined by the level tied to its sa0 input (v ss for logic 0 and v dd for logic 1). before any data is transmitted on the i 2 c-bus, the device which should respond is addressed first. the addressing is always ca rried out with the first byte transmitted after the start procedure. the i 2 c-bus configuration for the different pcf 21219 read and write cycles is shown in figure 25 to figure 27 . the slow down feature of the i 2 c-bus protocol (receiver holds scl line low during internal operations) is not used in the pcf21219. 11.2.2 i 2 c-bus definitions definitions: ? transmitter: the device which sends the data to the bus. ? receiver: the device which receives the data from the bus. ? master: the device which initia tes a transfer, generates clock signals and terminates a transfer. ? slave: the device addressed by a master. ? multi-master: more than one master can atte mpt to control the bus at the same time without corrupting the message. fig 24. acknowledgement on the i 2 c-bus pef 6 67$57 frqglwlrq     forfnsxovhiru dfnqrzohgjhphqw qrwdfnqrzohgjh dfnqrzohgjh gdwdrxwsxw e\wudqvplwwhu gdwdrxwsxw e\uhfhlyhu 6&/iurp pdvwhu table 33. i 2 c slave address byte slave address bit 7 6 5 4 3 2 1 0 msb lsb 011101sa0r/w
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 40 of 82 nxp semiconductors pcf21219 lcd driver for character displays ? arbitration: procedure to ensure that if more than one master simultaneously tries to control the bus, only one is allowed to do so and the message is not corrupted. ? synchronization: procedure to synchronize t he clock signals of two or more devices. fig 25. master transmits to slave receiver; write mode ddd 6 $  6 3  $ vodyhdgguhvv &21752/%<7( $  &r '$7$%<7( $ &21752/%<7( $ 5:  &r xsgdwh gdwdsrlqwhu e\wh q?e\whv q?e\whv '$7$%<7( $ dfnqrzohgjhphqw iurp3&) 56 56 last data byte is a dummy byte (may be omitted). fig 26. master reads after setting word address; writes word address, set rs; read_data pjj 6 $  6   $ vodyhdgguhvv &21752/%<7( $  &r '$7$%<7( $ &21752/%<7( $ 5:  &r &r xsgdwh gdwdsrlqwhu xsgdwh gdwdsrlqwhu e\wh q?e\whv qe\whv odvwe\wh q?e\whv '$7$%<7(  $ dfnqrzohgjhphqw 6 $  6 $ '$7$%<7( $  3 6/$9( $''5(66 '$7$%<7( dfnqrzohgjhphqw dfnqrzohgjhphqw qrdfnqrzohgjhphqw 5: 56 56
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 41 of 82 nxp semiconductors pcf21219 lcd driver for character displays 11.3 safety notes fig 27. master reads slave immediately afte r first byte; read mode (rs previously defined) ddd &r 6 $  6 $ $  3 '$7$%<7( odvwe\wh qe\whv xsgdwh gdwdsrlqwhu xsgdwh gdwdsrlqwhu qrdfnqrzohgjhphqw iurppdvwhu dfnqrzohgjhphqw iurppdvwhu dfnqrzohgjhphqw iurp3&) '$7$%<7( 6/$9( $''5(66 5: caution this device is sensitive to electrostatic di scharge (esd). observe precautions for handling electrostatic sensitive devices. such precautions are described in the ansi/esd s20.20 , iec/st 61340-5 , jesd625-a or equivalent standards. caution static voltages across the liquid crystal display can build up when the lcd supply voltage (v lcd ) is on while the ic supply voltage (v dd ) is off, or vice versa. this may cause unwanted display artifacts. to av oid such artifacts, v lcd and v dd must be applied or removed together. caution semiconductors are light sens itive. exposure to light s ources can cause the ic to malfunction. the ic must be protected agains t light. the protection must be applied to all sides of the ic.
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 42 of 82 nxp semiconductors pcf21219 lcd driver for character displays 12. internal circuitry table 34. device protection circuits symbol pin internal circuit v dd1 1 to 6 v dd2 7 to 14 v dd3 15 to 18 v ss1 22 to 29 v ss2 30 to 35 v lcdsense 36 v lcdin 44 to 49 v lcdout 37 to 43 scl 151 to 152 sda 156 to 157 osc 168 pd 155 por 154 t1 20 t2 21 t3 153 e19 rs 159 r/w 158 db0 to db7 160 to 167 r1 to r18 58, 57 to 51, 142 to 149, 59, 100, 141 c1 to c80 140 to 101, 99 to 60 ddd 9 '' 9 66 ddd 9 '' 9 66 9 66 ddd 9 '' 9 66 ddd 9 66 9 66 ddd 9 66 ddd 9 '' 9 66 ddd 9 /&',1 9 66
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 43 of 82 nxp semiconductors pcf21219 lcd driver for character displays 13. limiting values [1] for all diode protected input and output pins. [2] pass level; human body model (hbm) according to ref. 7 ? jesd22-a114 ? . [3] pass level; machine model (mm), according to ref. 8 ? jesd22-a115 ? . [4] pass level; latch-up testing according to ref. 9 ? jesd78 ? at maximum ambient temperature (t amb(max) ). [5] according to the store and transport requirements (see ref. 12 ? um10569 ? ) the devices have to be stored at a temperature of +8 ? c to +45 ? c and a humidity of 25 % to 75 %. table 35. limiting values in accordance with the absolute maximum rating system (iec 60134). symbol parameter conditions min max unit v dd1 supply voltage 1 logic ? 0.5 +6.5 v v dd2 supply voltage 2 v lcd generator ? 0.5 +4.5 v v dd3 supply voltage 3 v lcd lcd supply voltage ? 0.5 +7.5 v v i input voltage v dd related ? 0.5 +6.5 v v lcd related ? 0.5 +7.5 v i i input current dc current [1] ? 10 +10 ma i o output current dc current [1] ? 10 +10 ma i dd supply current ? 50 +50 ma i ss ground supply current ? 50 +50 ma i dd(lcd) lcd supply current ? 50 +50 ma p tot total power dissipation - 400 mw p o output power dissipation per output -100 mw v esd electrostatic discharge voltage hbm [2] - ? 3000 v mm [3] - ? 300 v i lu latch-up current [4] -200 ma t stg storage temperature [5] ? 65 +150 ?c t amb ambient temperature operating device ? 40 +85 ?c
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 44 of 82 nxp semiconductors pcf21219 lcd driver for character displays 14. static characteristics table 36. static characteristics v dd1 = 2.5 v to 5.5 v; v dd2 =v dd3 = 2.5 v to 4.0 v; v ss =0v;v lcd = 2.5 v to 6.5 v; t amb = ? 40 ? c to +85 ? c; unless otherwise specified. symbol parameter conditions min typ max unit supplies v dd1 supply voltage 1 logic 2.5 - 5.5 v v dd2 supply voltage 2 internal v lcd generation; v lcd >v dd2 =v dd3 2.5 - 4.0 v v dd3 supply voltage 3 v lcd lcd supply voltage pins v lcd , v lcdin , v lcdout 2.5 - 6.5 v ground supply current using external v lcd [1] i ss ground supply current - 70 120 ? a v dd =3v; v lcd =5v [2] -3 58 0 ? a icon mode; v dd =3v; v lcd =2.5v [2] -2 54 5 ? a power-down mode; v dd =3v; v lcd =2.5v; db7todb0, rs and r/w = 1; osc = 0; pd = 1 -0.55 ? a ground supply current using internal v lcd [1] [3] i ss ground supply current - 190 400 ? a v dd =3v; v lcd =5v [2] - 135 400 ? a icon mode; v dd =2.5v; v lcd =2.5v [2] -8 5- ? a logic v i input voltage ? 0.5 - v dd1 +0.5 v v il low-level input voltage v ss1 -0.3v dd1 v v ih high-level input voltage 0.7v dd1 -v dd1 v oscillator input; pin osc v il low-level input voltage v ss1 -v dd1 ? 1.2 v v ih high-level input voltage v dd1 ? 0.1 - v dd1 v data bus; pins db7 to db0 i ol low-level output curr ent output sink current; v ol =0.4v; v dd1 =5v 1.6 4 - ma i oh high-level output current output source current; v oh =4v; v dd1 =5v 18- ma i pu pull-up current v i =v ss1 0.04 0.15 1 ? a i l leakage current v i =v dd1, 2, 3 or v ss1, 2 ? 1- +1 ? a i 2 c-bus; pins sda and scl inputs: pins sda and scl v i input voltage [4] ? 0.5 - 5.5 v v il low-level input voltage 0 - 0.3v dd1 v v ih high-level input voltage 0.7v dd1 -5.5v i li input leakage current v i =v dd1, 2, 3 or v ss1, 2 ? 1- +1 ? a
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 45 of 82 nxp semiconductors pcf21219 lcd driver for character displays [1] lcd outputs are open-circuit; inputs at v dd or v ss ; bus inactive. [2] t amb =25 ? c; f osc(ext) = 200 khz. [3] lcd outputs are open-circuit; v lcd generator is on; load current i lcd =5 ? a. [4] the i 2 c-bus interface of pcf21219 is 5 v tolerant. [5] resistance of output pins (r1 to r18 and c1 to c80) with a load current of 10 ? a; outputs measured one at a time; external lcd supply v lcd =3v; v dd1 =v dd2 =v dd3 =3v. [6] lcd outputs open-circui t; external lcd supply. c i input capacitance - 5 - pf output: pin sda i ol low-level output current output sink current v ol =0.4v 3 - - ma lcd outputs r o output resistance row output, pins r1 to r18 [5] -1 03 0k ? column output, pins c1 to c80 [5] -1 54 0k ? ? v bias bias voltage variation on pins r1 to r18 and c1 to c80 [6] -2 01 3 0m v ? v lcd lcd voltage variation t amb =25 ?c [3] v lcd <3v - - 160 mv v lcd <4v - - 200 mv v lcd <5v - - 260 mv v lcd <6v - - 340 mv table 36. static characteristics ?continued v dd1 = 2.5 v to 5.5 v; v dd2 =v dd3 = 2.5 v to 4.0 v; v ss =0v;v lcd = 2.5 v to 6.5 v; t amb = ? 40 ? c to +85 ? c; unless otherwise specified. symbol parameter conditions min typ max unit
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 46 of 82 nxp semiconductors pcf21219 lcd driver for character displays 15. dynamic characteristics table 37. dynamic characteristics v dd1 = 2.5 v to 5.5 v; v dd2 =v dd3 = 2.5 v to 4.0 v; v ss =0v; v lcd = 2.5 v to 6.5 v; t amb = ? 40 ? c to +85 ? c; unless otherwise specified. symbol parameter conditions min typ max unit clock and oscillator f fr(lcd) lcd frame frequency internal clock; v dd = 5 v 150 220 300 hz f osc oscillator frequency not available at any pin 461 675 922 khz f osc(ext) external oscillator frequency 140 - 1000 khz t d(startup)(osc) start-up delay time on pin osc oscillator, after power-down [1] -2 0 03 0 0 ? s timing characteristics of parallel interface [2] write operation (writing data from microcontroller to pcf21219); see figure 28 t cy(en) enable cycle time 500 - - ns t w(en) enable pulse width 220 - - ns t su(a) address set-up time 50 - - ns t h(a) address hold time 25 - - ns t su(d) data input set-up time 60 - - ns t h(d) data input hold time 25 - - ns read operation (reading data from pcf21219 to microcontroller); see figure 29 t cy(en) enable cycle time 500 - - ns t w(en) enable pulse width 220 - - ns t su(a) address set-up time 50 - - ns t h(a) address hold time 25 - - ns t d(dv) data input valid delay time - - 150 ns t h(d) data input hold time 20 - 100 ns timing characteristics of i 2 c-bus interface [2] ; see figure 30 f scl scl clock frequency - - 400 khz t low low period of the scl clock 1.3 - - ? s t high high period of the scl clock 0.6 - - ? s t su;dat data set-up time 100 - - ns t hd;dat data hold time 0 - - ns t r rise time of both sda and scl signals [1] [3] 15 + 0.1 c b - 300 ns t f fall time of both sda and scl signals [1] [3] 15 + 0.1 c b - 300 ns c b capacitive load for each bus line --400pf t su;sta set-up time for a repeated start condition 0.6 - - ? s t hd;sta hold time (repeated) start condition 0.6 - - ? s
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 47 of 82 nxp semiconductors pcf21219 lcd driver for character displays [1] tested on sample base. [2] all timing values are valid within the operating supply voltage and ambient temperature range and are referenced to v il and v ih with an input voltage swing of v ss to v dd . [3] c b = total capacitance of one bus line in pf. t su;sto set-up time for stop condition 0.6 - - ? s t sp pulse width of spikes that must be suppressed by the input filter --50ns t buf bus free time between a stop and start condition 1.3 - - ? s table 37. dynamic characteristics ?continued v dd1 = 2.5 v to 5.5 v; v dd2 =v dd3 = 2.5 v to 4.0 v; v ss =0v; v lcd = 2.5 v to 6.5 v; t amb = ? 40 ? c to +85 ? c; unless otherwise specified. symbol parameter conditions min typ max unit fig 28. parallel bus write operation sequence; writing data from microcontroller to pcf21219 fig 29. parallel bus read operation sequence; writing data from pcf21219 to microcontroller 56 ( '%wr'% 9 ,+ 9 ,/ 9 ,/ 9 ,/ 9 ,+ 9 ,/ 9 ,+ 9 ,/ 9 ,+ 9 ,/ 9 ,+ 9 ,/ 9 ,+ 9 ,/ 9 ,/ w f\ hq w vx $ w z hq w k $ w k $ w k ' w vx ' ydolggdwd pen 5: 56 ( '%wr'% 9 ,+ 9 ,+ 9 ,+ 9 ,/ 9 ,+ 9 ,/ 9 2+ 9 2/ 9 2+ 9 2/ 9 ,+ 9 ,/ 9 ,+ 9 ,/ 9 ,/ w f\ hq w vx $ w z hq w k $ w k $ w k ' w g '9 pen 5:
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 48 of 82 nxp semiconductors pcf21219 lcd driver for character displays fig 30. i 2 c-bus timing diagram 6'$ pjd 6'$ 6&/ w 6867$ w 68672 w +'67$ w %8) w /2: w +''$7 w +,*+ w u w i w 68'$7
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 49 of 82 nxp semiconductors pcf21219 lcd driver for character displays 16. application information 16.1 general application information the required minimum value for the external capacitors in an application with the pcf21219 are: c ext from pins v lcd to v ss = 100 nf and for pins v dd to v ss = 470 nf. higher capacitor values are recommended for ripple reduction. for cog applications the recommended ito tra ck resistance is to be minimized for the i/o and supply connections. optimized values for these tracks are below 50 ? for the supply and below 100 ? for the i/o connections. higher track resistance reduce performance and increase current consumption. to avoid accidental triggering of power-on reset (por) (especially in co g applications), the supplies must be adequately decoupled. depending on power supply quality, v dd1 may have to be risen above the specified minimum. when external lcd supply voltage is supplied, v lcdout should be left open-circuit to avoid any stray current, and v lcdin must be connected to v lcdsense . the pcf21219 i 2 c-bus interface is compatible with systems, where the i 2 c pull-up resistors are connected to a 5 v ? 10 % supply. 16.2 power supply connections for internal v lcd generation drawings are showing alternative circuits. decoupling capacitors are not shown in the drawings. fig 31. recommended v dd connections for internal v lcd generation the value of the capacitor should be at least 100 nf. fig 32. recommended v lcd connections for internal v lcd generation 9 '' 9 '' 9 '' 9 66 9 66 *1' 9wr9 9wr9 ddd 9 '' 9 '' 9 '' 9 66 9 66 *1' 9wr9 ddd  ddd 9 66 9 /&',1 9 /&'287 9 /&'6(16(
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 50 of 82 nxp semiconductors pcf21219 lcd driver for character displays 16.3 power supply connections for external v lcd generation remark: when using an external v lcd , the internal v lcd generator must never be switched on and direct mode must be avoided otherwise damages will occur. 16.4 information about v lcd connections v lcdin ? this input is used for generating the 5 lcd bias levels. it is the power supply for the bias level buffers. v lcdout ? this is the v lcd output if v lcd is generated internally. in this case pin v lcdout must be connected to v lcdin and to v lcdsense . if v lcd is generated externally, v lcdout must be left unconnected. v lcdsense ? this input is used for the voltage multiplier?s regulation circuitry. when using the internal v lcd generation, this pin must be connected to v lcdout and v lcdin . when using an external v lcd supply it must be connected to v lcdin only. 16.5 reducing current consumption reducing current consumption can be achi eved by one of the options given in ta b l e 3 8 . when v lcd lies outside the v dd range and must be generated, it is usually more efficient to use the on-chip v lcd generator than an external regulator. drawings are showing alternative circuits. decoupling capacitors are not shown in the drawings. fig 33. recommended v dd connections for external v lcd generation the value of the capacitor should be at least 100 nf. fig 34. recommended v lcd connections for external v lcd generation 9 '' 9 '' 9 '' 9 66 9 66 *1' 9wr9 9wr9 ddd *1' ddd 9 '' 9 '' 9 '' 9 66 9 66 9wr9 ddd 9 66 9 /&',1 9 /&'287 9 /&'6(16( qf 9 /&' h[w
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 51 of 82 nxp semiconductors pcf21219 lcd driver for character displays 16.6 charge pump characteristics typical graphs of the total power consumptio n of the pcf21219 using the internal charge pump are illustrated in figure 35 and figure 36 . the graphs were obtained under the following conditions: ? t amb = 25 ? c ? v dd1 = v dd2 = v dd3 = 2.7 v and 4.0 v ? normal mode ? f osc = internal oscillator ? multiplex drive mode 1:18 ? typical current load for i lcd = 10 ? a. for each multiplication factor there is a se parate line. the line ends where it is not possible to get a higher voltage under its conditions (a higher multiplication factor is needed to get higher voltages). connecting different displays may result in di fferent current consumption. this affects the efficiency and the optimum multiplication factor to be used to generate a certain output voltage. table 38. reducing current consumption original mode alternative mode character mode icon mode (control bit im) display on display off (control bit d) v lcd generator operating direct mode any mode power-down mode (pin pd) (1) 2 ? multiplication factor. (2) 3 ? multiplication factor. (3) 4 ? multiplication factor. fig 35. typical charge pum p characteristics (b), v dd =2.7v pjz 9 /&'  9         , ''  ?$    
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 52 of 82 nxp semiconductors pcf21219 lcd driver for character displays 16.7 interfaces (1) 2 ? multiplication factor. (2) 3 ? multiplication factor. (3) 4 ? multiplication factor. fig 36. typical charge pum p characteristics (c), v dd =4.0v pjz 9 /&'  9         , ''  ?$     fig 37. typical application using para llel interface, 4 or 8 bit bus possible ddd 3&)   &wr&  26& 56 '%wr'% '%wr'% (  q)  q) 5wr5 9 66 5:  55 9 ' ' 9 '' 9 /&' 9 6 6 ?&+$5$&7(5 /&'',63/$< 3/86,&216
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 53 of 82 nxp semiconductors pcf21219 lcd driver for character displays 16.8 connections wi th lcd modules fig 38. application using i 2 c-bus interface 9 '' 9 '' 6&/ 6'$ ,  &0$67(5 0,&52&21752//(5 3&) ?&+$5$&7(5 /&'',63/$< 3/86,&216  &wr&   26& 6&/ 6'$ '%6$2  q)  q) 55 5wr5 9 '' 9 '' 9 66 9 '' 9 /&' 9 66 3&) ?&+$5$&7(5 /&'',63/$< 3/86,&216  &wr&   26& 6&/ 6'$ '%6$2  q)  q) 55 5wr5 9 66 9 '' 9 66 9 '' 9 /&' 9 66 ddd fig 39. connecting pcf21219 with 2 ? 16 character lcd 3&)    5 5wr5 &wr& 5wr5 5 ,frqv ddd &kdudfwhuurz &kdudfwhuurz
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 54 of 82 nxp semiconductors pcf21219 lcd driver for character displays fig 40. connecting pcf21219 with 1 ? 32 character lcd 3&)    5 5wr5 &wr& 5wr5 5 ,frqv ddd ,frqv &wr& &kdudfwhuurz &kdudfwhuurz
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 55 of 82 nxp semiconductors pcf21219 lcd driver for character displays 16.9 4-bit operation, 1-line display using external reset the program must set functions prior to a 4-bit operation (see ta b l e 3 9 ). when power is turned on, 8-bit operation is automatically selected and the pcf21219 attempts to perform the first write as an 8-bit operat ion. since nothing is connected to ports db0 to db3, a rewrite is then re quired. however, since one operation is completed in two accesses of 4-bit operation, a rewrite is required to set the functions (see table 39 step 3). thus, db4 to db7 of the function_set are written twice. 16.10 8-bit operation, 1-line display using external reset ta b l e 4 0 and table 41 show an example of a 1-line display in 8-bit operation. the pcf21219 functions must be set by the function _set instruction prior to display. since the ddram can store data for 80 characters, the ram can be used for advertising displays when combined with display shift operation. since the display shift operation changes display position only and the ddram contents remain unchanged, display data entered first can be displayed when the return_home operation is performed. table 39. 4-bit operation, 1-line display exam ple; using external reset (character set ?a?) step instruction display operation rs r/w db7 db6 db5 db4 1 power supply on initialized by the external reset; no display appears 2 function_set sets to 4-bit operation; in this instance operation is handled as 8-bit by initialization and only this instruction completes with one write 000010 3 function_set sets to 4-bit operation, selects 1-line display and v lcd =v 0 ; 4-bit operation starts from this point and resetting is needed 000010 000000 4 display_ctl turns display and cursor on; entire display is blank after initialization 000000 001110 5 entry_mode_set sets mode to increment the address by 1 and to shift the cursor to the right at the time of write to the ddram or cgram; display is not shifted 000000 000110 6 write_data to cgram/ddram writes ?p?; the ddram has already been selected by initialization at power-on; the cursor is incremented by 1 and shifted to the right 100101 p 100000 table 40. 8-bit operation, 1-line display exam ple; using external reset (character set ?a?) step instruction display operation rs r/w db7 db6 db5 db4 db3 db2 db1 db0 1 power supply on initialized by the external reset; no display appears 2 function_set sets to 8-bit operation, selects 1-line display and v lcd =v 0 0000110000 3 display_ctl turns on display and cursor; entire display is blank after initialization 0000001110
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 56 of 82 nxp semiconductors pcf21219 lcd driver for character displays 4 entry_mode_set sets mode to increment the address by 1 and to shift the cursor to the right at the time of the write to the ddram/cgram; display is not shifted 0000000110 5 write_data to cgram/ddram writes ?p?; the ddram has already been selected by initialization at power-on; the cursor is incremented by 1 and shifted to the right 1001010000 p 6 write_data to cgram/ddram writes ?h? 1001001000 ph 7 to 10 : philip writes ?ilip? 11 write_data to cgram/ddram writes ?s? 1001010011 philips 12 entry_mode_set sets mode for display shift at the time of write 0000000111 philips 13 write_data to cgram/ddram writes space 1000100000 hilips 14 write_data to cgram/ddram writes ?m? 1001001101 ilips m 15 to 19 : microk writes ?icrok? 20 write_data to cgram/ddram writes ?o? 1001001111 microko 21 curs_disp_shift shifts only the cursor position to the left 0000010000 microk o 22 curs_disp_shift shifts only the cursor position to the left 0000010000 micro k o 23 write_data to cgram/ddram writes ?c? correction; display moves to the left 1001000011 icroc o 24 curs_disp_shift shifts the display and cursor to the right 0000011100 microc o 25 curs_disp_shift shifts only the cursor to the right 0000010100 microco 26 write_data to cgram/ddram writes ?m? 1001001101 icrocom 27 return_home returns both display and cursor to the original position (address 0) 0000000010 p hilips m table 40. 8-bit operation, 1-line display exam ple; using external reset (character set ?a?) ?continued step instruction display operation rs r/w db7 db6 db5 db4 db3 db2 db1 db0
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 57 of 82 nxp semiconductors pcf21219 lcd driver for character displays 16.11 8-bit operation, 2-line display for a 2-line display the cursor automatically moves from the first to the second line after the 40th digit of the first line has been written. thus, if there are only 8 characters in the first line, the ddram address must be set after the 8th character is completed (see table 42 ). it should be noted that both lines of the display are always shifted together; data does not shift from one line to the other. table 41. 8-bit operation, 1-line display and icon example; using external reset (character set ?a?) step instruction display operation rs r/w db7 db6 db5 db4 db3 db2 db1 db0 1 power supply on initialized by the external reset; no display appears 2 function_set sets to 8-bit operation, selects 1-line display and v lcd =v 0 0000110000 3 display_ctl turns on display and cursor; entire display is blank after initialization 0000001110 4 entry_mode_set sets mode to increment the address by 1 and to shift the cursor to the right at the time of the write to the dd/cgram; display is not shifted 0000000110 5 set_cgram sets the cgram address to position of character 0; the cgram is selected 0001000000 6 write_data to cgram/ddram writes data to cgram for icons; icons appears 1000001010 7: 8 function_set sets bit h = 1 0000110001 9 icon_ctl character mode, full display 0000001000 10 function_set sets bit h = 0 0000110001 11 set_ddram sets the ddram address to the first position; ddram is selected 0010000000 12 write_data to cgram/ddram writes ? p?; the cursor is incremented by 1 and shifted to the right 1001010000 p 13 write_data to cgram/ddram writes ?h? 1001001000 ph 14 to 18 : philips writes ?ilips? 19 return_home returns both display and cursor to the original position (address 0) 0000000010 p hilips
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 58 of 82 nxp semiconductors pcf21219 lcd driver for character displays 16.12 i 2 c-bus operation, 1-line display a control byte is required with most commands (see ta b l e 4 3 ). table 42. 8-bit operation, 2-line display exam ple; using external reset (character set ?a?) instruction step rs r/w db7 db6 db5 db4 db3 db2 db1 db0 display operation 1 power supply on initialized by the external reset; no display appears 2 function_set sets to 8-bit operation; selects 2-line display and v lcd generator off 0000110100 3 display mode on/off control turns on display and cursor; entire display is blank after initialization 0000001110 4 entry_mode_set sets mode to increment the address by 1 and to shift the cursor to the right at the time of write to the cg/ddram; display is not shifted 0000000110 5 write_data to cgram/ddram writes ?p?; the ddram has already been selected by initialization at power-on; the cursor is incremented by 1 and shifted to the right 1001010000 p 6 to 10 : philip writes ?hilip? 11 write_data to cgram/ddram writes ?s? 1001010011 philips 12 set_ddram sets ddram address to position the cursor at the head of the 2nd line 0011000000 philips 13 write_data to cgram/ ddram writes ?m? 1001001101 philips m 14 to 18 : philips microc writes ?icroc? 19 write_data to cgram/ddram writes ?o? 1001001111 philips microco 20 write_data to cgram/ddram sets mode for display shift at the time of write 0000000111 philips microco 21 write_data to cgram/ddram writes ?m?; display is shifted to the left; the first and second lines shift together 1001001101 hilips icrocom 22 : : 23 return_home returns both display and cursor to the original position (address 0) 0000000010 p hilips microcom
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 59 of 82 nxp semiconductors pcf21219 lcd driver for character displays table 43. example of i 2 c-bus operation; 1-line display (using external reset, assuming pin sa0 = v ss ) [1] step i 2 c-bus byte display operation 1i 2 c-bus start initialized; no display appears 2 slave address for write during the acknowledge cycle sda will be pulled-down by the pcf21219 sa6 sa5 sa4 sa3 sa2 sa1 sa0 r/w ack 011101001 3 send a control byte for function_set control byte sets rs for following data bytes cors000000ack 000000001 4 function_set selects 1-line display and v lcd =v 0 ; scl pulse during acknowledge cycle starts execution of instruction db7 db6 db5 db4 db3 db2 db1 db0 ack 001x00001 5 display_ctl turns on display and cursor; entire display shows character code 20h (blank in ascii-like character sets) db7 db6 db5 db4 db3 db2 db1 db0 ack 000011101 6 entry_mode_set sets mode to increment the address by 1 and to shift the cursor to the right at the time of write to the ddram or cgram; display is not shifted db7 db6 db5 db4 db3 db2 db1 db0 ack 000001101 7i 2 c-bus start for writing data to ddram, rs must be set to 1; therefore a control byte is needed 8 slave address for write sa6 sa5 sa4 sa3 sa2 sa1 sa0 r/w ack 011101001 9 send a control byte for write_data cors000000ack 010000001 10 write_data to ddram writes ?p?; the ddram has been selected at power-on; the cursor is incremented by 1 and shifted to the right db7 db6 db5 db4 db3 db2 db1 db0 ack p 010100001 11 write_data to ddram writes ?h? db7 db6 db5 db4 db3 db2 db1 db0 ack ph 010010001 12 to 15 : philip writes ?ilip? 16 write_data to ddram writes ?s? db7 db6 db5 db4 db3 db2 db1 db0 ack philips 010100111 17 optional l 2 c-bus stop philips 18 i 2 c-bus start philips 19 slave address for write sa6 sa5 sa4 sa3 sa2 sa1 sa0 r/w ack philips 011101001
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 60 of 82 nxp semiconductors pcf21219 lcd driver for character displays [1] x = don?t care. [2] sda is left at high-impedance by the microcontroller during the read acknowledge. 16.13 initialization 20 control byte cors000000ack philips 100000001 21 return_home sets ddram address 0 in address counter (also returns shifted display to original position; ddram contents unchanged); this instruction does not update the data register db7 db6 db5 db4 db3 db2 db1 db0 ack p hilips 000000101 22 i 2 c-bus start p hilips 23 slave address for read during t he acknowledge cycle the content of the data register is loaded into the internal i 2 c-bus interface to be shifted out; in the previous instruction neither a ?set address? nor a read_data has been performed; therefore the content of the data register was unknown; bit r/w has to be set to logic 1 while still in i 2 c-write mode sa6 sa5 sa4 sa3 sa2 sa1 sa0 r/w ack p hilips 011101011 24 control byte for read ddram content will be read from following instructions cors000000ack p hilips 011000001 25 read_data: 8 ? scl + master acknowledge [2] 8 ? scl; content loaded into interface during previous acknowledge cycle is shifted out over sda; msb is db7; during master acknowledge content of ddram address 01 is loaded into the i 2 c-bus interface db7 db6 db5 db4 db3 db2 db1 db0 ack p hilips xxxxxxxx0 26 read_data: 8 ? scl + master acknowledge [2] 8 ? scl; code of letter ?h? is read first; during master acknowledge code of ?i? is loaded into the i 2 c-bus interface db7 db6 db5 db4 db3 db2 db1 db0 ack p hilips 010010000 27 read_data: 8 ? scl + no master acknowledge [2] no master acknowledge; after the content of the i 2 c-bus interface register is shifted out no internal action is performed; no new data is loaded to the interface register, data register is not updated, address counter is not incremented and cursor is not shifted db7 db6 db5 db4 db3 db2 db1 db0 ack p hilips 010010011 28 i 2 c-bus stop p hilips table 43. example of i 2 c-bus operation; 1-line display (using external reset, assuming pin sa0 = v ss ) [1] ?continued step i 2 c-bus byte display operation table 44. initialization by instruction, 8-bit interface ( [1] ) step instruction description rs r/w db7 db6 db5 db4 db3 db2 db1 db0 1 power-on or unknown state 2 wait 2 ms after internal reset has been applied 3 function_set interface is 8 bits long; bf cannot be checked before this instruction 000011xxxx
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 61 of 82 nxp semiconductors pcf21219 lcd driver for character displays [1] x = don?t care. 4wait 2ms 5 function_set interface is 8 bits long; bf cannot be checked before this instruction 000011xxxx 6 wait more than 40 ? s 7 function_set interface is 8 bits long; bf cannot be checked before this instruction 000011xxxx bf can be checked after the following instructions; when bf is not checked, the waiting time between instructions is the specified instruction time (see ta b l e 1 2 ) 8 function_set (interface is 8 bits long) specify number of display lines 0000110m0h 9 display_ctl display off 0000001000 10 clear_display 0000000001 11 entry_mode_set 00000001i_ds 12 initialization ends table 44. initialization by instruction, 8-bit interface ( [1] ) ?continued step instruction description rs r/w db7 db6 db5 db4 db3 db2 db1 db0
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 62 of 82 nxp semiconductors pcf21219 lcd driver for character displays table 45. initialization by instruction, 4-bit interface; not applicable for i 2 c-bus operation step instruction description rs r/w db7 db6 db5 db4 1 power-on or unknown state 2 wait 2 ms after internal reset has been applied 3 function_set interface is 8 bits long; bf cannot be checked before this instruction 000011 4wait 2ms 5 function_set interface is 8 bits long; bf cannot be checked before this instruction 000011 6 wait more than 40 ? s 7 function_set interface is 8 bits long; bf cannot be checked before this instruction 000011 bf can be checked after the following instructi ons; when bf is not checked, the waiting time between instructions is the specified instruction time (see ta b l e 1 2 ) 8 function_set 000010set interface to 4bit long interface is 8 bit long 9 function_set 000010set interface to 4bits long 000m0hspecify number of display line 10 display_ctl 000000 001000display off 11 clear_display 000000 000001 12 entry_mode_set 000000 0001i_ds : 13 initialization ends
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 63 of 82 nxp semiconductors pcf21219 lcd driver for character displays 16.14 user defined characters and symbols up to 16 user defined characters may be stored in the cgram. the content of the cgram is lost during power-do wn, therefore the cgram has to be rewritten after every power-on. below some source code is printed, which shows how a user defined character is defined - in this case the euro currency sign. the display used is a 2 lines by 16 characters display and the interface is the i 2 c-bus: // write a user defined character into the cgram starti2c(); // pcf21219 slave address for write, sa0 is connected to vdd sendi2caddress(0x76); // msb (continuation bit co) = 0, more than one byte may follow. bit6, rs=0, next byte // is command byte i2c_write(0x00); // 2 lines x 16, 1/18 duty, basic instruction set. next byte will be another command. i2c_write(0x24); // set cgram address to 0 i2c_write(0x40); // repeated start condition starti2c(); sendi2caddress(0x76); // rs=1, next byte is a data byte i2c_write(0x40); // here the data bytes to define the character // behind the write commands the 5x8 dot matrix is shown, the 1 represents a on pixel. // the euro currency character can be recognized by the 0/1 pattern (see figure 41 ) i2c_write(0x06); // 00110 i2c_write(0x09); // 01001 i2c_write(0x08); // 01000 i2c_write(0x1e); // 11110 i2c_write(0x1e); // 11110 i2c_write(0x08); // 01000 i2c_write(0x09); // 01001 fig 41. user defined euro currency sign           ddd             
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 64 of 82 nxp semiconductors pcf21219 lcd driver for character displays i2c_write(0x06); // 00110 i2c_stop(); // until here the definition of the character and writing it into the cgram. now it // still needs to be displayed. see below. // pcf21219, setting of proper display modes starti2c(); // pcf21219 slave address for write, sa0 is connected to vdd sendi2caddress(0x76); // msb (continuation bit co) = 0, more than one byte may follow. bit6, rs=0, next byte // is command byte i2c_write(0x00); // 2 lines x 16, 1/18 duty, extended instruction set. next byte will be another // command. i2c_write(0x25); // set display configuration to right to left, column 80 to 1. row data displ. top to // bottom,1 to 16. i2c_write(0x06); // set to character mode, full display i2c_write(0x08); // set voltage multiplier to 2 i2c_write(0x40); // set vlcd and store in register va i2c_write(0xa0); // change from extended instruction set to basic instruction set i2c_write(0x24); // display control: set display on, cursor off i2c_write(0x0c); // entry mode set, increase ddram after access, no shift i2c_write(0x06); // return home, set ddram address 0 in address counter i2c_write(0x02); // clear entire display, set ddram address to 0 in address counter i2c_write(0x01); // repeated start condition because rs needs to be changed from 0 to 1 starti2c(); sendi2caddress(0x76); // rs=1, next byte is data i2c_write(0x40); // write the character at address 0, which is the previously defined euro currency // character i2c_write(0x00); i2c_stop();
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 65 of 82 nxp semiconductors pcf21219 lcd driver for character displays 17. bare die outline fig 42. bare die outline of pcf21219 5hihuhqfhv 2xwolqh yhuvlrq (xurshdq surmhfwlrq ,vvxhgdwh ,(& -('(& -(,7$ 3&)'8* sfigxjbgr %duhglhexpsv 3&)'8*   pp vfdoh = ghwdlo= $ $  ghwdlo; h e ghwdlo< h  / e  ; < ( '                    3& \ [   $0 $0 $0 $0  
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 66 of 82 nxp semiconductors pcf21219 lcd driver for character displays table 46. dimensions of pcf21219 original dimensions are in mm. unit (mm) a a 1 b b 1 d e e e 1 l max 0.0225 nom 0.38 0.0175 0.05 0.1 7.6 1.7 0.07 0.35 0.09 min 0.0125 table 47. pin location all x and y coordinates are referenced to the center of the ch ip (dimensions in ? m). symbol pin x y description v dd1 1 +745 ? 274 logic supply voltage 1 v dd1 2 +745 ? 204 v dd1 3 +745 ? 134 v dd1 4 +745 ? 64 v dd1 5 +745 +6 v dd1 6 +745 +76 v dd2 7 +745 +146 v lcd generator supply voltage 2 v dd2 8 +745 +216 v dd2 9 +745 +286 v dd2 10 +745 +356 v dd2 11 +745 +426 v dd2 12 +745 +496 v dd2 13 +745 +566 v dd2 14 +745 +636 v dd3 15 +745 +706 v dd3 16 +745 +776 v dd3 17 +745 +846 v dd3 18 +745 +916 e 19 +745 +986 data bus clock input t1 20 +745 +1196 test pin 1 t2 21 +745 +1406 test pin 2 v ss1 22 +745 +1616 ground 1 v ss1 23 +745 +1686 v ss1 24 +745 +1756 v ss1 25 +745 +1826 v ss1 26 +745 +1896 v ss1 27 +745 +1966 v ss1 28 +745 +2036 v ss1 29 +745 +2106
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 67 of 82 nxp semiconductors pcf21219 lcd driver for character displays v ss2 30 +745 +2176 ground 2 v ss2 31 +745 +2246 v ss2 32 +745 +2316 v ss2 33 +745 +2386 v ss2 34 +745 +2456 v ss2 35 +745 +2666 v lcdsense 36 +745 +2736 input for voltage multiplier regulation v lcdout 37 +745 +2806 v lcd output v lcdout 38 +745 +2876 v lcdout 39 +745 +2946 v lcdout 40 +745 +3016 v lcdout 41 +745 +3086 v lcd output v lcdout 42 +745 +3156 v lcdout 43 +745 +3226 v lcdin 44 +745 +3296 input for generation of lcd bias levels v lcdin 45 +745 +3366 v lcdin 46 +745 +3436 v lcdin 47 +745 +3506 v lcdin 48 +745 +3576 v lcdin 49 +745 +3646 dummy 50 ? 745 +3576 dummy r8 51 ? 745 +3506 lcd row driver output r7 52 ? 745 +3436 r6 53 ? 745 +3366 r5 54 ? 745 +3296 r4 55 ? 745 +3226 r3 56 ? 745 +3156 r2 57 ? 745 +3086 r1 58 ? 745 +3016 r17 59 ? 745 +2946 c80 60 ? 745 +2876 lcd column driver output c79 61 ? 745 +2806 c78 62 ? 745 +2736 c77 63 ? 745 +2666 c76 64 ? 745 +2596 c75 65 ? 745 +2526 c74 66 ? 745 +2456 c73 67 ? 745 +2386 c72 68 ? 745 +2316 c71 69 ? 745 +2246 table 47. pin location ?continued all x and y coordinates are referenced to the center of the ch ip (dimensions in ? m). symbol pin x y description
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 68 of 82 nxp semiconductors pcf21219 lcd driver for character displays c70 70 ? 745 +2176 lcd column driver output c69 71 ? 745 +2106 c68 72 ? 745 +2036 c67 73 ? 745 +1966 c66 74 ? 745 +1896 c65 75 ? 745 +1756 c64 76 ? 745 +1686 c63 77 ? 745 +1616 c62 78 ? 745 +1546 c61 79 ? 745 +1476 c60 80 ? 745 +1406 c59 81 ? 745 +1336 c58 82 ? 745 +1266 c57 83 ? 745 +1196 c56 84 ? 745 +1126 c55 85 ? 745 +1056 c54 86 ? 745 +986 c53 87 ? 745 +916 c52 88 ? 745 +846 c51 89 ? 745 +776 c50 90 ? 745 +706 c49 91 ? 745 +636 c48 92 ? 745 +566 c47 93 ? 745 +496 c46 94 ? 745 +426 c45 95 ? 745 +356 c44 96 ? 745 +286 c43 97 ? 745 +216 c42 98 ? 745 +146 c41 99 ? 745 +76 r17dup 100 ? 745 +6 lcd row driver output c40 101 ? 745 ? 64 lcd column driver output c39 102 ? 745 ? 13 4 c3 8 103 ? 745 ? 204 c37 104 ? 745 ? 274 c36 105 ? 745 ? 344 c35 106 ? 745 ? 414 c34 107 ? 745 ? 484 c33 108 ? 745 ? 554 c32 109 ? 745 ? 624 table 47. pin location ?continued all x and y coordinates are referenced to the center of the ch ip (dimensions in ? m). symbol pin x y description
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 69 of 82 nxp semiconductors pcf21219 lcd driver for character displays c31 110 ? 745 ? 694 lcd column driver output c30 111 ? 745 ? 764 c29 112 ? 745 ? 834 c28 113 ? 745 ? 904 c27 114 ? 745 ? 974 c26 115 ? 745 ? 1044 c25 116 ? 745 ? 1114 c24 117 ? 745 ? 1184 c23 118 ? 745 ? 1254 c22 119 ? 745 ? 1324 c21 120 ? 745 ? 1394 c20 121 ? 745 ? 1464 c19 122 ? 745 ? 1534 c18 123 ? 745 ? 1604 c17 124 ? 745 ? 1674 c16 125 ? 745 ? 1744 c15 126 ? 745 ? 1884 c14 127 ? 745 ? 1954 c13 128 ? 745 ? 2024 c12 129 ? 745 ? 2094 c11 130 ? 745 ? 2 164 c1 0 131 ? 745 ? 2234 c9 132 ? 745 ? 2304 c8 133 ? 745 ? 2374 c7 134 ? 745 ? 2444 c6 135 ? 745 ? 2514 c5 136 ? 745 ? 2584 c4 137 ? 745 ? 2654 c3 138 ? 745 ? 2724 c2 139 ? 745 ? 2794 c1 140 ? 745 ? 2864 r18 141 ? 745 ? 2934 lcd row driver output r9 142 ? 745 ? 3004 r10 143 ? 745 ? 3074 r11 144 ? 745 ? 3144 r12 145 ? 745 ? 3214 r13 146 ? 745 ? 3284 r14 147 ? 745 ? 3354 r15 148 ? 745 ? 3424 r16 149 ? 745 ? 3494 table 47. pin location ?continued all x and y coordinates are referenced to the center of the ch ip (dimensions in ? m). symbol pin x y description
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 70 of 82 nxp semiconductors pcf21219 lcd driver for character displays 18. handling information all input and output pins are protected ag ainst electrostatic discharge (esd) under normal handling. when handling metal-oxide semiconductor (mos) devices ensure that all normal precautions are taken as described in jesd625-a , iec 61340-5 or equivalent standards. dummy 150 ? 745 ? 3704 dummy scl 151 +745 ? 3704 i 2 c-bus serial clock input scl 152 +745 ? 3634 t3 153 +745 ? 3494 test pin 3 por 154 +745 ? 3424 external power-on reset (por) input pd 155 +745 ? 3214 power-down mode select input sda 156 +745 ? 3004 i 2 c-bus serial data input/output sda 157 +745 ? 2934 r/w 158 +745 ? 2584 read/write input rs 159 +745 ? 2374 register select input db0 160 +745 ? 2164 8-bit bidirectional data bus; bit 0 db1 161 +745 ? 1954 8-bit bidirectional data bus; bit 1 db2 162 +745 ? 1744 8-bit bidirectional data bus; bit 2 db3/sa0 163 +745 ? 1534 8-bit bidirectional data bus; bit 3 db4 164 +745 ? 1324 8-bit bidirectional data bus; bit 4 db5 165 +745 ? 1114 8-bit bidirectional data bus; bit 5 db6 166 +745 ? 904 8-bit bidirectional data bus; bit 6 db7 167 +745 ? 694 8-bit bidirectional data bus; bit 7 osc 168 +745 ? 484 oscillator or external clock input table 48. alignment mark location all x and y coordinates are referenced to the center of the ch ip (dimensions in ? m). symbol pin x y am1 - +745 ? 2689 am2 - +745 +2561 am3 - ? 745 +3681 am4 - ? 745 ? 3599 table 47. pin location ?continued all x and y coordinates are referenced to the center of the ch ip (dimensions in ? m). symbol pin x y description
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 71 of 82 nxp semiconductors pcf21219 lcd driver for character displays 19. packing information 19.1 packing information on the tray schematic drawing, not drawn to scale. for dimensions see table 49 . tray has pockets on both, front side and back side. fig 43. details of the 3 inch tray + ghwdlo< ghwdlo; < ; ( 0 1 2 / * ) ( ) -$ . 6(&7,21$$ % ' $ & $ 'lphqvlrqvlqpp ddd [ \ \ [  gl h
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 72 of 82 nxp semiconductors pcf21219 lcd driver for character displays table 49. specification of 3 inch tray details tray details are shown in figure 43 . nominal values without production tolerances. tray details dimensions abcdef ghj kl mnounit 9.5 3.0 7.69 1.81 76.0 68.0 57.0 6.5 9.5 63 4.2 2.6 3.2 0.50 mm number of pockets x direction y direction 722 the orientation of the ic in a pocket is indica ted by the position of the ic type name on the die surface with respect to the chamfer on the upper right corner of the tray. refer to figure 42 on page 65 for the orientating and position of the type name on the die surface. fig 44. die alignment in the 3 inch tray ddm pdunlqjfrgh
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 73 of 82 nxp semiconductors pcf21219 lcd driver for character displays 20. appendix 20.1 lcd character driver selection table 50. selection of lcd character drivers all character drivers are bare die with gold bumps. type name number of character set v dd1 (v) v dd2 (v) v lcd (v) f fr (hz) v lcd (v) charge pump v lcd (v) temperature compensat. t amb ( ?c) interface aec- q100 lines icons 1 ? 2 ? 4 ? characters pcf2113au 24 12 - 120 a 1.8 to 5.5 2.2 to 4 2.2 to 6.5 95 y y ? 40 to 85 i 2 c, parallel n pcf2113du 24 12 - 120 d 1.8 to 5.5 2.2 to 4 2.2 to 6.5 95 y y ? 40 to 85 i 2 c, parallel n pcf2113eu 24 12 - 120 e 1.8 to 5.5 2.2 to 4 2.2 to 6.5 95 y y ? 40 to 85 i 2 c, parallel n pcf2113wu 24 12 - 120 w 1.8 to 5.5 2.2 to 4 2.2 to 6.5 95 y y ? 40 to 85 i 2 c, parallel n pcf2116au 24 24 12 - a 2.5 to 6 2.5 to 6 3.5 to 9 65 y n ? 40 to 85 i 2 c, parallel n pcf2116cu 24 24 12 - c 2.5 to 6 2.5 to 6 3.5 to 9 65 y n ? 40 to 85 i 2 c, parallel n pcf2119au 32 16 - 160 a 1.5 to 5.5 2.2 to 4 2.2 to 6.5 95 y y ? 40 to 85 i 2 c, parallel n pcf2119du 32 16 - 160 s 1.5 to 5.5 2.2 to 4 2.2 to 6.5 95 y y ? 40 to 85 i 2 c, parallel n pcf2119fu 32 16 - 160 f 1.5 to 5.5 2.2 to 4 2.2 to 6.5 95 y y ? 40 to 85 i 2 c, parallel n pcf2119iu 32 16 - 160 i 1.5 to 5.5 2.2 to 4 2.2 to 6.5 95 y y ? 40 to 85 i 2 c, parallel n pcf2119ru 32 16 - 160 r 1.5 to 5.5 2.2 to 4 2.2 to 6.5 95 y y ? 40 to 85 i 2 c, parallel n pcf2119su 32 16 - 160 s 1.5 to 5.5 2.2 to 4 2.2 to 6.5 95 y y ? 40 to 85 i 2 c, parallel n PCF21219DUGR 32 16 - 160 r 2.5 to 5.5 2.5 to 4 2.5 to 6.5 220 y y ? 40 to 85 i 2 c, parallel n
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxx xxx pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 74 of 82 nxp semiconductors pcf21219 lcd driver for character displays [1] can be selected by command. pcf2117dugr 40 20 - 200 r 2.5 to 5.5 2.5 to 5.5 4 to 16 45 to 360 [1] yy ? 40 to 85 i 2 c, spi n pca2117dugr 40 20 - 200 r 2.5 to 5.5 2.5 to 5.5 4 to 16 45 to 360 [1] yy ? 40 to 105 i 2 c, spi y pcf2117dugs 40 20 - 200 s 2.5 to 5.5 2.5 to 5.5 4 to 16 45 to 360 [1] yy ? 40 to 85 i 2 c, spi n pca2117dugs 40 20 - 200 s 2.5 to 5.5 2.5 to 5.5 4 to 16 45 to 360 [1] yy ? 40 to 105 i 2 c, spi y table 50. selection of lcd character drivers ?continued all character drivers are bare die with gold bumps. type name number of character set v dd1 (v) v dd2 (v) v lcd (v) f fr (hz) v lcd (v) charge pump v lcd (v) temperature compensat. t amb ( ?c) interface aec- q100 lines icons 1 ? 2 ? 4 ? characters
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 75 of 82 nxp semiconductors pcf21219 lcd driver for character displays 21. abbreviations table 51. abbreviations acronym description cgram character generator ram cgrom character generator rom cmos complementary metal-oxide semiconductor cog chip-on-glass dc direct current ddram display data ram hbm human body model i 2 c inter-integrated circuit ic integrated circuit ito indium tin oxide lcd liquid crystal display lsb least significant bit mm machine model msb most significant bit mux multiplexer pcb printed-circuit board pi polyimide por power-on reset ram random access memory rms root mean square rom read only memory scl serial clock line sda serial data line
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 76 of 82 nxp semiconductors pcf21219 lcd driver for character displays 22. references [1] an10170 ? design guidelines for cog modules with nxp monochrome lcd drivers [2] an10706 ? handling bare die [3] an10853 ? esd and emc sensitivity of ic [4] an11267 ? emc and system level esd design guidelines for lcd drivers [5] iec 60134 ? rating systems for electronic tu bes and valves and analogous semiconductor devices [6] iec 61340-5 ? protection of electronic devices from electrostatic phenomena [7] jesd22-a114 ? electrostatic discharge (esd) sensitivity testing human body model (hbm) [8] jesd22-a115 ? electrostatic discharge (esd) se nsitivity testing machine model (mm) [9] jesd78 ? ic latch-up test [10] jesd625-a ? requirements for handling elec trostatic-discharge-sensitive (esds) devices [11] um10204 ? i 2 c-bus specification and user manual [12] um10569 ? store and transport requirements 23. revision history table 52. revision history document id release date data sheet status change notice supersedes pcf21219 v.1 20140114 product data sheet - -
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 77 of 82 nxp semiconductors pcf21219 lcd driver for character displays 24. legal information 24.1 data sheet status [1] please consult the most recently issued document before initiating or completing a design. [2] the term ?short data sheet? is explained in section ?definitions?. [3] the product status of device(s) described in this document may have changed since this document was published and may differ in case of multiple device s. the latest product status information is available on the internet at url http://www.nxp.com . 24.2 definitions draft ? the document is a draft versi on only. the content is still under internal review and subject to formal approval, which may result in modifications or additions. nxp semiconductors does not give any representations or warranties as to the accuracy or completeness of information included herein and shall hav e no liability for the consequences of use of such information. short data sheet ? a short data sheet is an extract from a full data sheet with the same product type number(s) and title. a short data sheet is intended for quick reference only and should not be relied upon to contain detailed and full information. for detailed and full information see the relevant full data sheet, which is available on request vi a the local nxp semiconductors sales office. in case of any inconsistency or conflict with the short data sheet, the full data sheet shall prevail. product specification ? the information and data provided in a product data sheet shall define the specification of the product as agreed between nxp semiconductors and its customer , unless nxp semiconductors and customer have explicitly agreed otherwis e in writing. in no event however, shall an agreement be valid in which the nxp semiconductors product is deemed to offer functions and qualities beyond those described in the product data sheet. 24.3 disclaimers limited warranty and liability ? information in this document is believed to be accurate and reliable. however, nxp semiconductors does not give any representations or warranties, expressed or implied, as to the accuracy or completeness of such information and shall have no liability for the consequences of use of such info rmation. nxp semiconductors takes no responsibility for the content in this document if provided by an information source outside of nxp semiconductors. in no event shall nxp semiconductors be liable for any indirect, incidental, punitive, special or consequential damages (including - without limitation - lost profits, lost savings, business interruption, costs related to the removal or replacement of any products or rework charges) whether or not such damages are based on tort (including negligence), warranty, breach of contract or any other legal theory. notwithstanding any damages that customer might incur for any reason whatsoever, nxp semiconductors? aggregate and cumulative liability towards customer for the products described herein shall be limited in accordance with the terms and conditions of commercial sale of nxp semiconductors. right to make changes ? nxp semiconductors reserves the right to make changes to information published in this document, including without limitation specifications and product descriptions, at any time and without notice. this document supersedes and replaces all information supplied prior to the publication hereof. suitability for use ? nxp semiconductors products are not designed, authorized or warranted to be suitable for use in life support, life-critical or safety-critical systems or equipment, nor in applications where failure or malfunction of an nxp semiconductors product can reasonably be expected to result in personal injury, death or severe property or environmental damage. nxp semiconductors and its suppliers accept no liability for inclusion and/or use of nxp semiconducto rs products in such equipment or applications and therefore such inclusion and/or use is at the customer?s own risk. applications ? applications that are described herein for any of these products are for illustrative purpos es only. nxp semiconductors makes no representation or warranty that such applications will be suitable for the specified use without further testing or modification. customers are responsible for the design and operation of their applications and products using nxp semiconductors products, and nxp semiconductors accepts no liability for any assistance with applications or customer product design. it is customer?s sole responsibility to determine whether the nxp semiconductors product is suitable and fit for the customer?s applications and products planned, as well as fo r the planned application and use of customer?s third party customer(s). customers should provide appropriate design and operating safeguards to minimize the risks associated with their applications and products. nxp semiconductors does not accept any liability related to any default, damage, costs or problem which is based on any weakness or default in the customer?s applications or products, or the application or use by customer?s third party customer(s). customer is responsible for doing all necessary testing for the customer?s applic ations and products using nxp semiconductors products in order to av oid a default of the applications and the products or of the application or use by customer?s third party customer(s). nxp does not accept any liability in this respect. limiting values ? stress above one or more limiting values (as defined in the absolute maximum ratings system of iec 60134) will cause permanent damage to the device. limiting values are stress ratings only and (proper) operation of the device at these or any other conditions above those given in the recommended operating conditions section (if present) or the characteristics sections of this document is not warranted. constant or repeated exposure to limiting values will permanently and irreversibly affect the quality and reliability of the device. terms and conditions of commercial sale ? nxp semiconductors products are sold subject to the gener al terms and conditions of commercial sale, as published at http://www.nxp.com/profile/terms , unless otherwise agreed in a valid written individual agreement. in case an individual agreement is concluded only the terms and conditions of the respective agreement shall apply. nxp semiconductors hereby expressly objects to applying the customer?s general terms and conditions with regard to the purchase of nxp semiconducto rs products by customer. no offer to sell or license ? nothing in this document may be interpreted or construed as an offer to sell products t hat is open for acceptance or the grant, conveyance or implication of any lic ense under any copyrights, patents or other industrial or intellectual property rights. document status [1] [2] product status [3] definition objective [short] data sheet development this document contains data from the objecti ve specification for product development. preliminary [short] data sheet qualification this document contains data from the preliminary specification. product [short] data sheet production this document contains the product specification.
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 78 of 82 nxp semiconductors pcf21219 lcd driver for character displays export control ? this document as well as the item(s) described herein may be subject to export control regu lations. export might require a prior authorization from competent authorities. non-automotive qualified products ? unless this data sheet expressly states that this specific nxp semicon ductors product is automotive qualified, the product is not suitable for automotive use. it is neither qualified nor tested in accordance with automotive testing or application requirements. nxp semiconductors accepts no liabili ty for inclusion and/or use of non-automotive qualified products in automotive equipment or applications. in the event that customer uses t he product for design-in and use in automotive applications to automotive specifications and standards, customer (a) shall use the product without nxp semiconductors? warranty of the product for such automotive applicat ions, use and specifications, and (b) whenever customer uses the product for automotive applications beyond nxp semiconductors? specifications such use shall be solely at customer?s own risk, and (c) customer fully in demnifies nxp semi conductors for any liability, damages or failed product claims resulting from customer design and use of the product for automotive appl ications beyond nxp semiconductors? standard warranty and nxp semicond uctors? product specifications. translations ? a non-english (translated) version of a document is for reference only. the english version shall prevail in case of any discrepancy between the translated and english versions. bare die ? all die are tested on compliance with their related technical specifications as stated in this data sheet up to the point of wafer sawing and are handled in accordance with the nxp semiconductors storage and transportation conditions. if there are data sheet limits not guaranteed, these will be separately indicated in the data sheet. there are no post-packing tests performed on individual die or wafers. nxp semiconductors has no control of third party procedures in the sawing, handling, packing or assembly of the die. accordingly, nxp semiconductors assumes no liability for device functionality or performance of the die or systems after third party sawing, handling, packing or assembly of the die. it is the responsibility of the customer to test and qualify their application in which the die is used. all die sales are conditioned upon and subject to the customer entering into a written die sale agreement with nxp semiconductors through its legal department. 24.4 trademarks notice: all referenced brands, produc t names, service names and trademarks are the property of their respective owners. i 2 c-bus ? logo is a trademark of nxp b.v. 25. contact information for more information, please visit: http://www.nxp.com for sales office addresses, please send an email to: salesaddresses@nxp.com
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 79 of 82 nxp semiconductors pcf21219 lcd driver for character displays 26. tables table 1. ordering information . . . . . . . . . . . . . . . . . . . . .3 table 2. ordering options . . . . . . . . . . . . . . . . . . . . . . . . .3 table 3. marking codes . . . . . . . . . . . . . . . . . . . . . . . . . .3 table 4. pin description . . . . . . . . . . . . . . . . . . . . . . . . . .6 table 5. state after reset . . . . . . . . . . . . . . . . . . . . . . . . .9 table 6. values of v a and v b and the corresponding v lcd values . . . . . . . . . . . . . . . . . . . . . . . . . . .10 table 7. bias levels as a functi on of multiplex rate . . . .12 table 8. address space and wrap-around operation . . .18 table 9. instruction set for i 2 c-bus commands . . . . . . .22 table 10. control byte bit description . . . . . . . . . . . . . . .22 table 11. register access selection . . . . . . . . . . . . . . . . .23 table 12. instruction register overview . . . . . . . . . . . . . .24 table 13. function_set bit description . . . . . . . . . . . . . . .25 table 14. bf_ac bit . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 table 15. read_data bit description . . . . . . . . . . . . . . . .26 table 16. write_data bit description . . . . . . . . . . . . . . . .26 table 17. clear_display bit description . . . . . . . . . . . . . .27 table 18. return_home bit description . . . . . . . . . . . . . .27 table 19. entry_mode_set bit description . . . . . . . . . . . .28 table 20. display_ctl bit description . . . . . . . . . . . . . . . .28 table 21. curs_disp_shift bit description . . . . . . . . . . . . .29 table 22. set_cgram bit description . . . . . . . . . . . . . . .30 table 23. set_ddram bit description . . . . . . . . . . . . . . .30 table 24. screen_conf bit description . . . . . . . . . . . . . . .31 table 25. disp_conf bit description . . . . . . . . . . . . . . . . .31 table 26. icon_ctl bit description . . . . . . . . . . . . . . . . . . .33 table 27. normal/icon mode operation . . . . . . . . . . . . . .33 table 28. temp_ctl bit description . . . . . . . . . . . . . . . . . .34 table 29. tc[1:0] selection of v lcd temperature coefficient . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 table 30. hv_gen bit description . . . . . . . . . . . . . . . . . .34 table 31. voltage multiplier control bits . . . . . . . . . . . . . .34 table 32. vlcd_set bit description . . . . . . . . . . . . . . . . .35 table 33. i 2 c slave address byte . . . . . . . . . . . . . . . . . . .39 table 34. device protection circuits . . . . . . . . . . . . . . . . .42 table 35. limiting values . . . . . . . . . . . . . . . . . . . . . . . . .43 table 36. static characteristics . . . . . . . . . . . . . . . . . . . .44 table 37. dynamic characteristics . . . . . . . . . . . . . . . . . .46 table 38. reducing current consumption . . . . . . . . . . . .51 table 39. 4-bit operation, 1-line display example; using external reset (character set ?a?) . . . . . .55 table 40. 8-bit operation, 1-line display example; using external reset (character set ?a?) . . . . . .55 table 41. 8-bit operation, 1-line display and icon example; using external reset (character set ?a?) . . . . . . . . . . . . . . . . . .57 table 42. 8-bit operation, 2-line display example; using external reset (character set ?a?) . . . . . .58 table 43. example of i 2 c-bus operation; 1-line display (using external reset, assuming pin sa0 = v ss ) [1] . . . . . . . . . . . . . . . . . . . . . . .59 table 44. initialization by in struction, 8-bit interface ( [1] ) .60 table 45. initialization by inst ruction, 4-bit interface; not applicable for i 2 c-bus operation . . . . . . . . . . .62 table 46. dimensions of pcf21219 . . . . . . . . . . . . . . . .66 table 47. pin location . . . . . . . . . . . . . . . . . . . . . . . . . . . 66 table 48. alignment mark location . . . . . . . . . . . . . . . . . 70 table 49. specification of 3 inch tray details . . . . . . . . . . 72 table 50. selection of lcd character drivers . . . . . . . . . 73 table 51. abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 75 table 52. revision history . . . . . . . . . . . . . . . . . . . . . . . . 76
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 80 of 82 nxp semiconductors pcf21219 lcd driver for character displays 27. figures fig 1. block diagram of pcf21219 . . . . . . . . . . . . . . . . .4 fig 2. pinning diagram of pcf21219. . . . . . . . . . . . . . . .5 fig 3. electro-optical characte ristic: relative transmission curve of the liquid. . . . . . . . . . . . . . . . . . . . . . . . .13 fig 4. waveforms for the 1:18 multiplex drive mode with 5 bias levels; character mode. . . . . . . . . . . .14 fig 5. waveforms for the 1:9 multiplex drive mode with 5 bias levels; character mode, r9 to r16 and r18 open . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 fig 6. waveforms for the 1:2 multiplex drive mode with 4 bias levels; icon mode . . . . . . . . . . . . . . . .16 fig 7. ddram to display mapping: no shift . . . . . . . . . .17 fig 8. ddram to display mapping: right shift . . . . . . . .17 fig 9. ddram to display mapping: left shift . . . . . . . . .18 fig 10. character set ?r? in cgrom . . . . . . . . . . . . . . . .19 fig 11. relationship between cgram addresses, data and display patterns. . . . . . . . . . . . . . . . . . .20 fig 12. cursor display example . . . . . . . . . . . . . . . . . . . .21 fig 13. example of displays with ic ons . . . . . . . . . . . . . .21 fig 14. use of bit p . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 fig 15. use of bit q . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 fig 16. use of bit p and bit q. . . . . . . . . . . . . . . . . . . . . .32 fig 17. cgram to icon mapping . . . . . . . . . . . . . . . . . . .33 fig 18. 4-bit transfer example . . . . . . . . . . . . . . . . . . . . .36 fig 19. an example of 4-bit data transfer timing sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 fig 20. example of busy flag checking timing sequence .37 fig 21. system configuration . . . . . . . . . . . . . . . . . . . . . .38 fig 22. bit transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 fig 23. definition of start and stop conditions. . . . . .38 fig 24. acknowledgement on the i 2 c-bus . . . . . . . . . . . .39 fig 25. master transmits to slave receiver; write mode . .40 fig 26. master reads after setting word address; writes word address, set rs; read_data . . . . . . . . . . . .40 fig 27. master reads slave immediately after first byte; read mode (rs previously defined) . . . . . . . . . . .41 fig 28. parallel bus write operation sequence; writing data from microcontroller to pcf21219 . . . . . . . .47 fig 29. parallel bus read operation sequence; writing data from pcf21219 to microcontroller . . . . . . . .47 fig 30. i 2 c-bus timing diagram . . . . . . . . . . . . . . . . . . . .48 fig 31. recommended v dd connections for internal v lcd generation . . . . . . . . . . . . . . . . . . . . . . . . . .49 fig 32. recommended v lcd connections for internal v lcd generation . . . . . . . . . . . . . . . . . . . . . . . . . .49 fig 33. recommended v dd connections for external v lcd generation . . . . . . . . . . . . . . . . . . . . . . . . . .50 fig 34. recommended v lcd connections for external v lcd generation . . . . . . . . . . . . . . . . . . . . . . . . . .50 fig 35. typical charge pump characteristics (b), v dd = 2.7 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 fig 36. typical charge pump characteristics (c), v dd = 4.0 v . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 fig 37. typical application using parallel interface, 4 or 8 bit bus possible . . . . . . . . . . . . . . . . . . . . .52 fig 38. application using i 2 c-bus interface . . . . . . . . . . .53 fig 39. connecting pcf21219 with 2 ? 16 character lcd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 fig 40. connecting pcf21219 with 1 ? 32 character lcd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 fig 41. user defined euro currency sign . . . . . . . . . . . . . 63 fig 42. bare die outline of pcf21219 . . . . . . . . . . . . . . . 65 fig 43. details of the 3 inch tray . . . . . . . . . . . . . . . . . . . 71 fig 44. die alignment in the 3 inch tray. . . . . . . . . . . . . . 72
pcf21219 all information provided in this document is subject to legal disclaimers. ? nxp b.v. 2014. all rights reserved. product data sheet rev. 1 ? 14 january 2014 81 of 82 continued >> nxp semiconductors pcf21219 lcd driver for character displays 28. contents 1 general description . . . . . . . . . . . . . . . . . . . . . . 1 2 features and benefits . . . . . . . . . . . . . . . . . . . . 1 3 applications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 4 ordering information . . . . . . . . . . . . . . . . . . . . . 3 4.1 ordering options . . . . . . . . . . . . . . . . . . . . . . . . 3 5 marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 6 block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 4 7 pinning information . . . . . . . . . . . . . . . . . . . . . . 5 7.1 pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 7.2 pin description . . . . . . . . . . . . . . . . . . . . . . . . . 6 8 functional description . . . . . . . . . . . . . . . . . . . 8 8.1 oscillator and timing generator. . . . . . . . . . . . . 8 8.1.1 timing generator. . . . . . . . . . . . . . . . . . . . . . . . 8 8.1.2 internal clock . . . . . . . . . . . . . . . . . . . . . . . . . . 8 8.1.3 external clock . . . . . . . . . . . . . . . . . . . . . . . . . . 8 8.2 reset function and power-on reset (por) . . . 8 8.3 power-down mode . . . . . . . . . . . . . . . . . . . . . . 9 8.4 lcd supply voltage generator . . . . . . . . . . . . 10 8.4.1 programming ranges . . . . . . . . . . . . . . . . . . . 10 8.5 lcd bias voltage generator . . . . . . . . . . . . . . 11 8.5.1 electro-optical performance . . . . . . . . . . . . . . 12 8.6 lcd row and column drivers . . . . . . . . . . . . . 13 9 display data ram and rom . . . . . . . . . . . . . . 17 9.1 ddram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 9.2 cgrom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 9.3 cgram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 9.4 cursor control circuit. . . . . . . . . . . . . . . . . . . . 21 10 registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 10.1 data register . . . . . . . . . . . . . . . . . . . . . . . . . . 23 10.2 instruction register . . . . . . . . . . . . . . . . . . . . . 23 10.2.1 basic instructions (bit h = 0 or 1) . . . . . . . . . . 25 10.2.1.1 function_set . . . . . . . . . . . . . . . . . . . . . . . . . . 25 10.2.1.2 bf_ac instructions . . . . . . . . . . . . . . . . . . . . . 25 10.2.1.3 read_data . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 10.2.1.4 write_data . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 10.2.2 standard instructions (bit h = 0) . . . . . . . . . . . 27 10.2.2.1 clear_display . . . . . . . . . . . . . . . . . . . . . . . . . 27 10.2.2.2 return_home . . . . . . . . . . . . . . . . . . . . . . . . . 27 10.2.2.3 entry_mode_set . . . . . . . . . . . . . . . . . . . . . . . 28 10.2.2.4 display_ctl instructions . . . . . . . . . . . . . . . . . . 28 10.2.2.5 curs_disp_shift . . . . . . . . . . . . . . . . . . . . . . . . 29 10.2.2.6 set_cgram . . . . . . . . . . . . . . . . . . . . . . . . . . 30 10.2.2.7 set_ddram . . . . . . . . . . . . . . . . . . . . . . . . . . 30 10.2.3 extended instructions (bit h = 1) . . . . . . . . . . 31 10.2.3.1 screen_conf . . . . . . . . . . . . . . . . . . . . . . . . . . 31 10.2.3.2 disp_conf . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 10.2.3.3 icon_ctl. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 10.2.3.4 temp_ctl. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 10.2.3.5 hv_gen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 10.2.3.6 vlcd_set. . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 11 basic architecture . . . . . . . . . . . . . . . . . . . . . . 36 11.1 parallel interface . . . . . . . . . . . . . . . . . . . . . . 36 11.2 i 2 c-bus interface . . . . . . . . . . . . . . . . . . . . . . 38 11.2.1 i 2 c-bus protocol . . . . . . . . . . . . . . . . . . . . . . . 39 11.2.2 i 2 c-bus definitions . . . . . . . . . . . . . . . . . . . . . 39 11.3 safety notes . . . . . . . . . . . . . . . . . . . . . . . . . . 41 12 internal circuitry . . . . . . . . . . . . . . . . . . . . . . . 42 13 limiting values . . . . . . . . . . . . . . . . . . . . . . . . 43 14 static characteristics . . . . . . . . . . . . . . . . . . . 44 15 dynamic characteristics. . . . . . . . . . . . . . . . . 46 16 application information . . . . . . . . . . . . . . . . . 49 16.1 general application informa tion . . . . . . . . . . . 49 16.2 power supply connections for internal v lcd generation . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 16.3 power supply connections for external v lcd generation . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 16.4 information about v lcd connections . . . . . . . 50 16.5 reducing current consumption . . . . . . . . . . . 50 16.6 charge pump characteristics . . . . . . . . . . . . . 51 16.7 interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 16.8 connections with lcd modules. . . . . . . . . . . 53 16.9 4-bit operation, 1-line display using external reset . . . . . . . . . . . . . . . . . . . . . . . . . 55 16.10 8-bit operation, 1-line display using external reset . . . . . . . . . . . . . . . . . . . . . . . . . 55 16.11 8-bit operation, 2-line display . . . . . . . . . . . . . 57 16.12 i 2 c-bus operation, 1-line display . . . . . . . . . . 58 16.13 initialization . . . . . . . . . . . . . . . . . . . . . . . . . . 60 16.14 user defined characters and symbols . . . . . . 63 17 bare die outline . . . . . . . . . . . . . . . . . . . . . . . . 65 18 handling information . . . . . . . . . . . . . . . . . . . 70 19 packing information . . . . . . . . . . . . . . . . . . . . 71 19.1 packing information on th e tray . . . . . . . . . . . 71 20 appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 20.1 lcd character driver selection. . . . . . . . . . . . 73 21 abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 75 22 references. . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 23 revision history . . . . . . . . . . . . . . . . . . . . . . . 76 24 legal information . . . . . . . . . . . . . . . . . . . . . . 77 24.1 data sheet status . . . . . . . . . . . . . . . . . . . . . . 77 24.2 definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
nxp semiconductors pcf21219 lcd driver for character displays ? nxp b.v. 2014. all rights reserved. for more information, please visit: http://www.nxp.com for sales office addresses, please se nd an email to: salesaddresses@nxp.com date of release: 14 january 2014 document identifier: pcf21219 please be aware that important notices concerning this document and the product(s) described herein, have been included in section ?legal information?. 24.3 disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 24.4 trademarks. . . . . . . . . . . . . . . . . . . . . . . . . . . 78 25 contact information. . . . . . . . . . . . . . . . . . . . . 78 26 tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 27 figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 28 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81


▲Up To Search▲   

 
Price & Availability of PCF21219DUGR

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X